mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-06 01:57:37 +02:00
added default state for expert setting
This commit is contained in:
@@ -128,6 +128,9 @@ class AdminPlugin extends Plugin
|
||||
// Set original route for the home page.
|
||||
$home = '/' . trim($this->config->get('system.home.alias'), '/');
|
||||
|
||||
// set the default if not set before
|
||||
$this->session->expert = $this->session->expert ?: true;
|
||||
|
||||
// set session variable if it's passed via the url
|
||||
if ($this->uri->param('mode') == 'expert') {
|
||||
$this->session->expert = true;
|
||||
|
||||
Reference in New Issue
Block a user