Fixed pandora console (mobile version). Ticket#2893
This commit is contained in:
parent
23d459a716
commit
4a0f350a3b
|
@ -25,10 +25,11 @@ class System {
|
||||||
|
|
||||||
function __construct() {
|
function __construct() {
|
||||||
$this->loadConfig();
|
$this->loadConfig();
|
||||||
|
$session_id = session_id();
|
||||||
DB::getInstance($this->getConfig('db_engine', 'mysql'));
|
DB::getInstance($this->getConfig('db_engine', 'mysql'));
|
||||||
|
if (empty($session_id)) {
|
||||||
session_start();
|
session_start();
|
||||||
|
}
|
||||||
$this->session = $_SESSION;
|
$this->session = $_SESSION;
|
||||||
session_write_close();
|
session_write_close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,6 +46,11 @@ $system = System::getInstance();
|
||||||
require_once($system->getConfig('homedir').'/include/constants.php');
|
require_once($system->getConfig('homedir').'/include/constants.php');
|
||||||
|
|
||||||
$user = User::getInstance();
|
$user = User::getInstance();
|
||||||
|
|
||||||
|
if (!is_object($user) && gettype($user) == 'object') {
|
||||||
|
$user = unserialize (serialize ($user));
|
||||||
|
}
|
||||||
|
|
||||||
$user->saveLogin();
|
$user->saveLogin();
|
||||||
|
|
||||||
$page = $system->getRequest('page', 'home');
|
$page = $system->getRequest('page', 'home');
|
||||||
|
|
Loading…
Reference in New Issue