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:
Clemens Schwaighofer
2017-11-28 12:01:15 +09:00
parent dc692f14e4
commit 717962edc5
2 changed files with 11 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;
}
}
?>