Bug fix for session name set in basic class, add info methods for l10n
The session name was never set correctly because it was not checked for the define var, but for a normal variable in the basic session name settings flow The l10n class has two new return methods for lang and mofile to check if the correct ones are set
This commit is contained in:
@@ -313,7 +313,7 @@
|
||||
if (!session_id())
|
||||
{
|
||||
// check if we have an external session name given, else skip this step
|
||||
if (isset($GLOBALS['SET_SESSION_NAME']))
|
||||
if (SET_SESSION_NAME)
|
||||
{
|
||||
// set the session name for possible later check
|
||||
$this->session_name = SET_SESSION_NAME;
|
||||
|
||||
@@ -105,5 +105,15 @@
|
||||
{
|
||||
return $this->l10n->ngettext($single, $plural, $number);
|
||||
}
|
||||
|
||||
public function __get_lang()
|
||||
{
|
||||
return $this->lang;
|
||||
}
|
||||
|
||||
public function __get_mofile()
|
||||
{
|
||||
return $this->mofile;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user