1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-22 14:13:03 +02:00

Improved logging of the upgrade process.

This commit is contained in:
Cameron
2013-05-12 20:56:35 -07:00
parent c109689ac9
commit a9c43432cc
6 changed files with 264 additions and 94 deletions

View File

@@ -473,7 +473,7 @@ class e_pref extends e_front_model
}
else
{
$data = e107::getArrayStorage()->ReadArray($row['e107_value']);
$data = e107::unserialize($row['e107_value']);
}
$this->pref_cache = $row['e107_value']; //runtime cache
@@ -541,7 +541,7 @@ class e_pref extends e_front_model
if($this->set_backup === true && !empty($this->pref_cache))
{
$old = e107::getArrayStorage()->ReadArray($this->pref_cache);
$old = e107::unserialize($this->pref_cache);
if($this->serial_bc)
{
$dbdata = serialize($old);
@@ -620,7 +620,7 @@ class e_pref extends e_front_model
$this->pref_cache = e107::getCache()->retrieve_sys('Config_'.$this->alias, 24 * 60, true);
}
return ($toArray && $this->pref_cache ? e107::getArrayStorage()->ReadArray($this->pref_cache) : $this->pref_cache);
return ($toArray && $this->pref_cache ? e107::unserialize($this->pref_cache) : $this->pref_cache);
}
/**
@@ -996,7 +996,7 @@ class prefs
// retrieve prefs as an array of values
function getArray($name)
{
return e107::getArrayStorage()->ReadArray($this->get($name));
return e107::unserialize($this->get($name));
// return unserialize($this->get($name));
}