User sees the text of some PHP script
Wed, 2009-01-14 20:23
User sees the text of some PHP script
when you click at demos, there is some php code which isn't really there to be seen, is it?
Quote:
?p#p
if ( user_access('create demo content') )
print l('Add your demo', 'node/add/demo', NULL, drupal_get_destination());
?
kind regards,
Marv
Well spotted!
?php
if ( user_access('create demo content') )
print l('Add your demo', 'node/add/demo', NULL, drupal_get_destination());
?
I think it's the "l" after "print", probably added by mistake if that is the case.
I'm no php expert though xD