[Xerte] missing include in preview.php

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Tue Dec 9 10:16:36 GMT 2008


Ah ok,

The best place to put this function would be in 

Modules/xerte/preview.php (ignore the capital M that's outlook)

Although toolkits only has a xerte module at present, there is scope for
adding other modules in future, so it will be to self contain any
failures within the modules themselves.

Thanks

Pat 

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of David Goodwin
Sent: 09 December 2008 09:10
To: Xerte discussion list
Subject: Re: [Xerte] missing include in preview.php

-----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-----
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list