mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Merge branch 'develop' of https://github.com/getgrav/grav into 1.5
This commit is contained in:
commit
4daec6908c
|
|
@ -207,7 +207,7 @@ class ConfigFileFinder
|
|||
continue;
|
||||
}
|
||||
|
||||
$name = $directory->getBasename();
|
||||
$name = $directory->getFilename();
|
||||
$find = ($lookup ?: $name) . '.yaml';
|
||||
$filename = "{$path}/{$name}/{$find}";
|
||||
|
||||
|
|
|
|||
|
|
@ -296,17 +296,17 @@ class Installer
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1063,7 +1063,7 @@ class Pages
|
|||
}
|
||||
|
||||
// Ignore all files in ignore list.
|
||||
if (\in_array($file->getBasename(), $this->ignore_files, true)) {
|
||||
if (\in_array($filename, $this->ignore_files, true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class Plugins extends Iterator
|
|||
if (!$directory->isDir()) {
|
||||
continue;
|
||||
}
|
||||
$plugins[] = $directory->getBasename();
|
||||
$plugins[] = $directory->getFilename();
|
||||
}
|
||||
|
||||
natsort($plugins);
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class Themes extends Iterator
|
|||
continue;
|
||||
}
|
||||
|
||||
$theme = $directory->getBasename();
|
||||
$theme = $directory->getFilename();
|
||||
$result = self::get($theme);
|
||||
|
||||
if ($result) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user