mirror of
https://github.com/getgrav/grav.git
synced 2026-07-05 05:18:36 +02:00
Don't critically fail, only log when plugin has config but is missing
This commit is contained in:
@@ -47,7 +47,8 @@ class Plugins extends Iterator
|
||||
|
||||
$filePath = $this->grav['locator']('plugins://' . $plugin . DS . $plugin . PLUGIN_EXT);
|
||||
if (!is_file($filePath)) {
|
||||
throw new \RuntimeException(sprintf("Plugin '%s' enabled but not found! Try clearing cache with `bin/grav clear-cache`", $plugin));
|
||||
$this->grav['log']->addWarning(sprintf("Plugin '%s' enabled but not found! Try clearing cache with `bin/grav clear-cache`", $plugin));
|
||||
continue;
|
||||
}
|
||||
|
||||
require_once $filePath;
|
||||
|
||||
Reference in New Issue
Block a user