Skip to content

Commit

Permalink
reverted back to file-only checks, changed to file_exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal committed Sep 5, 2014
1 parent 8da3eb3 commit d234b8e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions system/src/Grav/Common/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,9 @@ protected function build()
/** @var \DirectoryIterator $plugin */
foreach ($iterator as $plugin) {
$name = $plugin->getBasename();
$dir = $plugin->getPathname() ;
$file = $dir . DS . $name . YAML_EXT;
$file = $plugin->getPathname() . DS . $name . YAML_EXT;

if (!(is_dir($dir) && is_file($file))) {
if (!file_exists($file)) {
continue;
}

Expand Down

0 comments on commit d234b8e

Please sign in to comment.