Notice: Use of undefined constant - error - Joomla! Forum - community, help and support
hello,
i'm trying use :
code change modules , on installation worked perfectly, on other site i'm getting:
error,
everything seems work ok , modules switching according language , errors, same polish constant.
what can wrong ?
thank in advance,
hey.
o.
i'm trying use :
code: select all
<?php
if ($mosconfig_lang== english )
{mosloadmodules ( 'top' ,-2);}
?>
<?php
if ($mosconfig_lang== polish )
{mosloadmodules ( 'inset', -2 );}
?>
code change modules , on installation worked perfectly, on other site i'm getting:
code: select all
"notice: use of undefined constant english - assumed 'english' in ... "
everything seems work ok , modules switching according language , errors, same polish constant.
what can wrong ?
thank in advance,
hey.
o.
hello!
it should be
if don't use quotes php thinks english constant should sting.
jonas
it should be
code: select all
if ($mosconfig_lang== 'english' )
if don't use quotes php thinks english constant should sting.
jonas
Comments
Post a Comment