Index: trunk/core/kernel/application.php =================================================================== diff -u -N -r6685 -r6833 --- trunk/core/kernel/application.php (.../application.php) (revision 6685) +++ trunk/core/kernel/application.php (.../application.php) (revision 6833) @@ -843,6 +843,11 @@ return $this->Session->RemoveVar($var); } + function RemovePersistentVar($var) + { + return $this->Session->RemovePersistentVar($var); + } + /** * Restores Session variable to it's db version * @@ -869,6 +874,11 @@ return $this->Session->RecallVar($var,$default); } + function RecallPersistentVar($var, $default = false) + { + return $this->Session->RecallPersistentVar($var, $default); + } + /** * Stores variable $val in session under name $var * @@ -884,6 +894,11 @@ $this->Session->StoreVar($var, $val); } + function StorePersistentVar($var, $val) + { + $this->Session->StorePersistentVar($var, $val); + } + function StoreVarDefault($var, $val) { $session =& $this->recallObject('Session'); @@ -1557,8 +1572,22 @@ $http_query =& $this->recallObject('HTTPQuery'); $http_query->writeRequestLog(DBG_REQUREST_LOG); } + + if ($user_id != -2) { + // normal users + root + $this->LoadPersistentVars(); + } } + /** + * Loads current user persistent session data + * + */ + function LoadPersistentVars() + { + $this->Session->LoadPersistentVars(); + } + function LoadCache() { $cache_key = $this->GetVar('t').$this->GetVar('m_theme').$this->GetVar('m_lang').$this->IsAdmin(); $query = sprintf("SELECT PhraseList, ConfigVariables FROM %s WHERE Template = %s",