Skip to content

Commit

Permalink
Merge pull request #91 from mikeSimonson/debug-mv-thumb-folder-too
Browse files Browse the repository at this point in the history
Debug: When a folder is renamed the thumb folder gets renamed too.
  • Loading branch information
thibaud-rohmer committed May 15, 2014
2 parents 6fba1e1 + 0a9a428 commit 363c12c
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 363c12c

Please sign in to comment.