From 34c5bb716b58e17c81795bb2dfc41dd6b347d958 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 9 Sep 2014 14:03:01 -0600 Subject: [PATCH] fixed popularity object not loading --- admin.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin.php b/admin.php index ae8fe25d..bc561c24 100644 --- a/admin.php +++ b/admin.php @@ -96,6 +96,10 @@ class AdminPlugin extends Plugin if ($this->active) { $this->initializeAdmin(); } + + // We need popularity no matter what + require_once __DIR__ . '/classes/popularity.php'; + $this->popularity = new Popularity(); } /** @@ -182,6 +186,7 @@ class AdminPlugin extends Plugin public function onShutdown() { + // Just so we know that we're in this debug mode echo 'system.debugger.shutdown.close_connection = false'; if ($this->config->get('plugins.admin.popularity.enabled')) { @@ -200,8 +205,6 @@ class AdminPlugin extends Plugin 'onTwigSiteVariables' => ['onTwigSiteVariables', 1000] ]); - require_once PLUGINS_DIR . 'admin/classes/popularity.php'; - $this->popularity = new Popularity(); // Disable system caching. $this->config->set('system.cache.enabled', false);