[Xerte] missing include in preview.php
David Goodwin
david at palepurple.co.uk
Tue Dec 9 09:10:09 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Goodwin wrote:
> Hi,
>
> preview.php needs to have :
>
> include $site->php_library_path . "display_library.php
>
> In it; else the 'dont_show_template()' call fails if the user doesn'#t
> have permission...
Ick; sorry.. I jumped the gun on this. Including the above file causes
another problem when a function of the same name is defined twice.
Therefore, I replaced the 'dont_show_template()' call with a simple echo
with words to the same effect.
David.
- --
David Goodwin Pale Purple Limited
Office: 0845 0046746 Mobile: 07792380669
http://www.palepurple.co.uk Company No: 5580814
'Business Web Application Development and Training in PHP'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJPjXx/ISo3RF5V6YRAvKGAJ9fkxCWQ6bRuJzAnF15sidTDLT8BQCgtxXq
x+X8Aayn+Ff9bC0QouJoe5Q=
=eV2i
-----END PGP SIGNATURE-----
More information about the Xerte
mailing list