mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Issue #5079 - PHP 8.2 Deprecated error removal
This commit is contained in:
parent
4467ad32b8
commit
552af19c54
@ -48,6 +48,11 @@ class e107
|
||||
public $file_path;
|
||||
public $site_path;
|
||||
public $relative_base_path;
|
||||
|
||||
public $ecache;
|
||||
|
||||
|
||||
|
||||
// public $_ip_cache;
|
||||
// public $_host_name_cache;
|
||||
|
||||
|
@ -30,10 +30,10 @@ class e_ranks
|
||||
$this->imageFolder = is_dir(THEME.'images/ranks') ? THEME_ABS.'images/ranks/' : e_IMAGE_ABS.'ranks/';
|
||||
|
||||
|
||||
$e107 = e107::getInstance();
|
||||
$ecache = e107::getCache();
|
||||
$sql = e107::getDb();
|
||||
//Check to see if we can get it from cache
|
||||
if($force == false && ($ranks = $e107->ecache->retrieve_sys('nomd5_user_ranks')))
|
||||
if($force == false && ($ranks = $ecache->retrieve_sys('nomd5_user_ranks')))
|
||||
{
|
||||
$this->ranks = e107::unserialize($ranks);
|
||||
}
|
||||
@ -62,7 +62,7 @@ class e_ranks
|
||||
}
|
||||
}
|
||||
}
|
||||
$e107->ecache->set_sys('nomd5_user_ranks', e107::serialize($this->ranks, false));
|
||||
$ecache->set_sys('nomd5_user_ranks', e107::serialize($this->ranks, false));
|
||||
}
|
||||
|
||||
// defaults
|
||||
|
@ -151,14 +151,14 @@ class user_class
|
||||
{
|
||||
if (isset($this->class_tree) && count($this->class_tree) && !$force) return;
|
||||
|
||||
$e107 = e107::getInstance();
|
||||
$ecache = e107::getCache();
|
||||
|
||||
$this->class_tree = array();
|
||||
$this->class_parents = array();
|
||||
|
||||
|
||||
|
||||
if ($temp = $e107->ecache->retrieve_sys(UC_CACHE_TAG))
|
||||
if ($temp = $ecache->retrieve_sys(UC_CACHE_TAG))
|
||||
{
|
||||
$this->class_tree = e107::unserialize($temp);
|
||||
unset($temp);
|
||||
@ -202,7 +202,7 @@ class user_class
|
||||
}
|
||||
|
||||
$userCache = e107::serialize($this->class_tree, FALSE);
|
||||
$e107->ecache->set_sys(UC_CACHE_TAG,$userCache);
|
||||
$ecache->set_sys(UC_CACHE_TAG,$userCache);
|
||||
unset($userCache);
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,6 @@ function plugin_forum_admin_events($type, $parms)
|
||||
//Called if classtree cache is cleared. Meaning we'll need to rebuild moderator cache
|
||||
function plugin_forum_admin_events_clear_moderators()
|
||||
{
|
||||
$e107 = e107::getInstance();
|
||||
$e107->ecache->clear_sys('nomd5_forum_moderators');
|
||||
e107::getCache()->clear_sys('nomd5_forum_moderators');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user