mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
* stop using global $cache variable, use Singleton pattern instead
This commit is contained in:
@@ -516,7 +516,9 @@ function template_ga_code()
|
||||
|
||||
function template_form()
|
||||
{
|
||||
global $cache, $template_name;
|
||||
global $template_name;
|
||||
|
||||
$cache = Cache::getInstance();
|
||||
if($cache->enabled())
|
||||
{
|
||||
$tmp = '';
|
||||
@@ -963,8 +965,9 @@ function unsetSession($key) {
|
||||
}
|
||||
|
||||
function getTopPlayers($limit = 5) {
|
||||
global $cache, $config, $db;
|
||||
global $config, $db;
|
||||
|
||||
$cache = Cache::getInstance();
|
||||
$fetch_from_db = true;
|
||||
if($cache->enabled())
|
||||
{
|
||||
|
Reference in New Issue
Block a user