mirror of
https://github.com/getgrav/grav.git
synced 2025-10-26 07:56:07 +01:00
Revert "reverted back to file-only checks, changed to file_exists()"
This reverts commit d234b8e212.
This commit is contained in:
@@ -232,9 +232,10 @@ class Config extends Data
|
||||
/** @var \DirectoryIterator $plugin */
|
||||
foreach ($iterator as $plugin) {
|
||||
$name = $plugin->getBasename();
|
||||
$file = $plugin->getPathname() . DS . $name . YAML_EXT;
|
||||
$dir = $plugin->getPathname() ;
|
||||
$file = $dir . DS . $name . YAML_EXT;
|
||||
|
||||
if (!file_exists($file)) {
|
||||
if (!(is_dir($dir) && is_file($file))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user