mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-05 04:46:03 +01:00
optimization to stop admin from looking for pages in disabled plugins
This commit is contained in:
@@ -421,6 +421,10 @@ class AdminPlugin extends Plugin
|
||||
$locator = $this->grav['locator'];
|
||||
|
||||
foreach ($plugins as $plugin) {
|
||||
if ($this->config->get("plugins.{$plugin->name}.enabled") !== true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$path = $locator->findResource("user://plugins/{$plugin->name}/admin/pages/{$self->template}.md");
|
||||
|
||||
if ($path) {
|
||||
|
||||
Reference in New Issue
Block a user