mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-05 20:15:53 +02:00
This does not appear to be used as $this->pages in admin.php does not exist
This commit is contained in:
20
admin.php
20
admin.php
@@ -463,26 +463,6 @@ class AdminPlugin extends Plugin
|
||||
// Gather Plugin-hooked dashboard items
|
||||
$this->grav->fireEvent('onAdminDashboard');
|
||||
|
||||
break;
|
||||
case 'pages':
|
||||
$path = $this->route;
|
||||
|
||||
if (!$path) {
|
||||
$path = '/';
|
||||
}
|
||||
|
||||
if (!isset($this->pages[$path])) {
|
||||
$page = null;
|
||||
} else {
|
||||
$page = $this->pages[$path];
|
||||
}
|
||||
|
||||
if ($page != null) {
|
||||
$twig->twig_vars['file'] = File::instance($page->filePath());
|
||||
$twig->twig_vars['media_types'] = str_replace('defaults,', '',
|
||||
implode(',.', array_keys($this->config->get('media.types'))));
|
||||
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user