User sees the text of some PHP script

1 reply [Last post]
Marvin
User offline. Last seen 8 years 19 weeks ago. Offline
Joined: 2008-12-30
Posts: 54

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? Big Grin

Quote:

?p#p
if ( user_access('create demo content') )
print l('Add your demo', 'node/add/demo', NULL, drupal_get_destination());
?

kind regards,
Marv

Josh
Josh's picture
User offline. Last seen 9 years 34 weeks ago. Offline
Joined: 2008-11-09
Posts: 430

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

Copyright © 2004-2017 Hedgewars Project. All rights reserved. [ contact ]