mirror of
https://github.com/getgrav/grav.git
synced 2026-02-04 22:00:13 +01:00
Merge branch 'develop' into feature/gantry
This commit is contained in:
@@ -274,6 +274,11 @@ abstract class Folder
|
||||
throw new \RuntimeException('Cannot move non-existing folder.');
|
||||
}
|
||||
|
||||
// Don't do anything if the source is the same as the new target
|
||||
if ($source == $target) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Make sure that path to the target exists before moving.
|
||||
self::create(dirname($target));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user