Upgrade to 3.2.5

This commit is contained in:
Bastian Allgeier
2019-09-24 11:00:59 +02:00
parent ff9b5b1861
commit 447a9dd266
234 changed files with 1990 additions and 1224 deletions

View File

@@ -19,7 +19,6 @@ use Kirby\Toolkit\F;
*/
trait FileActions
{
/**
* Renames the file without touching the extension
* The store is used to actually execute this.
@@ -53,7 +52,9 @@ trait FileActions
}
// remove the lock of the old file
$oldFile->lock()->remove();
if ($lock = $oldFile->lock()) {
$lock->remove();
}
// remove all public versions
$oldFile->unpublish();
@@ -121,8 +122,8 @@ trait FileActions
/**
* Copy the file to the given page
*
* @param Kirby\Cms\Page $page
* @return Kirby\Cms\File
* @param \Kirby\Cms\Page $page
* @return \Kirby\Cms\File
*/
public function copy(Page $page)
{
@@ -216,7 +217,9 @@ trait FileActions
$file->unpublish();
// remove the lock of the old file
$file->lock()->remove();
if ($lock = $file->lock()) {
$lock->remove();
}
if ($file->kirby()->multilang() === true) {
foreach ($file->translations() as $translation) {