Skip to content

Commit

Permalink
Update Media.php (#2083)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcyrus authored and rhukster committed Jul 2, 2018
1 parent a09c6b1 commit a0918df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ protected function init()
/** @var \DirectoryIterator $info */
foreach ($iterator as $path => $info) {
// Ignore folders and Markdown files.
if (!$info->isFile() || $info->getExtension() === 'md' || $info->getBasename()[0] === '.') {
if (!$info->isFile() || $info->getExtension() === 'md' || $info->getFilename()[0] === '.') {
continue;
}

Expand Down

0 comments on commit a0918df

Please sign in to comment.