From 0a9a4282bba0e1161d410c4117e7f121b3dc32f2 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 24 Dec 2011 19:19:45 +0100 Subject: [PATCH] Debug: When a folder is renamed the thumb folder gets renamed too. We don't left any garbage anymore and we don't need to regenerate the thumbs again. --- src/classes/AdminMove.php | 2 ++ 1 file changed, 2 insertions(+) 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; }