Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/getgrav/grav into 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mahagr committed Jul 6, 2018
2 parents 05028d0 + 79bff58 commit 4daec69
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Config/ConfigFileFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ protected function detectInFolder($folder, $lookup = null)
continue;
}

$name = $directory->getBasename();
$name = $directory->getFilename();
$find = ($lookup ?: $name) . '.yaml';
$filename = "{$path}/{$name}/{$find}";

Expand Down
6 changes: 3 additions & 3 deletions system/src/Grav/Common/GPM/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,17 +296,17 @@ public static function sophisticatedInstall($source_path, $install_path, $ignore
{
foreach (new \DirectoryIterator($source_path) as $file) {

if ($file->isLink() || $file->isDot() || in_array($file->getBasename(),$ignores)) {
if ($file->isLink() || $file->isDot() || in_array($file->getFilename(), $ignores)) {
continue;
}

$path = $install_path . DS . $file->getBasename();
$path = $install_path . DS . $file->getFilename();

if ($file->isDir()) {
Folder::delete($path);
Folder::move($file->getPathname(), $path);

if ($file->getBasename() == 'bin') {
if ($file->getFilename() === 'bin') {
foreach (glob($path . DS . '*') as $bin_file) {
@chmod($bin_file, 0755);
}
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ function ($str) {
}

// Ignore all files in ignore list.
if (\in_array($file->getBasename(), $this->ignore_files, true)) {
if (\in_array($filename, $this->ignore_files, true)) {
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()
if (!$directory->isDir()) {
continue;
}
$plugins[] = $directory->getBasename();
$plugins[] = $directory->getFilename();
}

natsort($plugins);
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function all()
continue;
}

$theme = $directory->getBasename();
$theme = $directory->getFilename();
$result = self::get($theme);

if ($result) {
Expand Down

0 comments on commit 4daec69

Please sign in to comment.