Fixed disabling asset pipeline order issue #224

This commit is contained in:
Andy Miller
2015-10-22 14:47:47 -06:00
parent e95ffce08f
commit 6dd0e60c25

View File

@@ -108,6 +108,10 @@ class AdminPlugin extends Plugin
$this->initializeAdmin();
}
// Disable Asset pipelining
$this->config->set('system.assets.css_pipeline', false);
$this->config->set('system.assets.js_pipeline', false);
// We need popularity no matter what
require_once __DIR__ . '/classes/popularity.php';
$this->popularity = new Popularity();
@@ -123,10 +127,6 @@ class AdminPlugin extends Plugin
// Set original route for the home page.
$home = '/' . trim($this->config->get('system.home.alias'), '/');
// Disable Asset pipelining
$this->config->set('system.assets.css_pipeline', false);
$this->config->set('system.assets.js_pipeline', false);
// set the default if not set before
$this->session->expert = $this->session->expert ?: false;