Jump to content

Strict Standards: Only variables should be passed by reference in *** php file


ram1729

Recommended Posts

Hi All,

 

I am getting "Strict Standards: Only variables should be passed by reference in ***  php file " ... at line indicated red in below

Part  of the  code is where i am getting error is in bold and italic.

Would any of them help me out ?

 

PHP 5.3.6 Version, Apache/2.2.3

 

 

if (!$test_server_mode) {

if ($read_global_variables) {

$langvar = isset($GLOBALS[$variable]) ? $GLOBALS[$variable] : (isset($GLOBALS["lang$variable"]) ? $GLOBALS["lang$variable"] : $ot.$variable.$ct);

} else {

/*

@eval("\$langvar=\$$variable;"); // Note (RH): $$var doesn't work with arrays, see PHP doc

if (!isset($langvar)) {

@eval("\$langvar=\$lang$variable;");

if (!isset($langvar)) {

$langvar = $ot.$variable.$ct;

}

}

*/

$langvar = isset($$variable) ? $$variable : (isset(${"lang$variable"}) ? ${"lang$variable"} : $ot.$variable.$ct);

}

return $cache[$language][$dltt][$variable] = is_string($langvar) ? _get_lang_purifier(str_replace("\\'", "'", $langvar), $language) : $langvar;

}

 

// Translation mode for test/development servers.

if (!is_string($variable)) {

return $cache[$language][$dltt][$variable] = $ot.'get_lang(?)'.$ct;

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.