mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Fixed disabling asset pipeline order issue #224
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user