Print admin version only if in admin

This commit is contained in:
Flavio Copes
2015-10-20 10:36:48 +02:00
parent 269a3296db
commit ba07370b07

View File

@@ -84,8 +84,6 @@ class AdminPlugin extends Plugin
return;
}
$this->grav['debugger']->addMessage("Admin Basic");
$this->base = '/' . trim($route, '/');
$this->uri = $this->grav['uri'];
@@ -103,6 +101,7 @@ class AdminPlugin extends Plugin
{
// Only activate admin if we're inside the admin path.
if ($this->active) {
$this->grav['debugger']->addMessage("Admin Basic");
$this->initializeAdmin();
}