Skip to content

Commit

Permalink
Debug: When a folder is renamed the thumb folder gets renamed too.
Browse files Browse the repository at this point in the history
We don't left any garbage anymore and we don't need to regenerate
the thumbs again.
  • Loading branch information
mikeSimonson committed Dec 24, 2011
1 parent 7a6bdf2 commit 0a9a428
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/classes/AdminMove.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0a9a428

Please sign in to comment.