diff --git a/src/classes/AdminMove.php b/src/classes/AdminMove.php index 08f0875..495f223 100644 --- a/src/classes/AdminMove.php +++ b/src/classes/AdminMove.php @@ -105,7 +105,9 @@ public function move(){ } if($type == "rename"){ + $thumbsDir = Settings::$thumbs_dir."/".stripslashes($_POST['pathFrom']); @rename($from,dirname($from)."/".stripslashes($_POST['pathTo'])); + @rename($thumbsDir,dirname($thumbsDir)."/".stripslashes($_POST['pathTo'])); return; }