Jump to content

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


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;

}

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.