This does not appear to be used as $this->pages in admin.php does not exist

This commit is contained in:
Andy Miller
2016-06-02 15:15:44 -06:00
parent 490f869887
commit 96562e5692
2 changed files with 1 additions and 21 deletions

View File

@@ -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;
}
}