Notice: Use of undefined constant - error - Joomla! Forum - community, help and support


hello,

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 ... "
error,

everything seems work ok , modules switching according language , errors, same polish constant.

what can wrong ?

thank in advance,
hey.
o.

hello!

it should be

code: select all

if ($mosconfig_lang== 'english' )

if don't use quotes php thinks english constant should sting.

jonas





Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'