Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

Commit

Permalink
Fix missing update of directory ctime (fixes #85)
Browse files Browse the repository at this point in the history
  • Loading branch information
Parent5446 committed Jul 17, 2013
1 parent 1d219a5 commit 2545dc2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions WebBash/Controllers/FileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,11 +362,13 @@ public function patch( array $params, $data ) {
$mTime = true;
}

if ( $cTime ) {
$file->updateChangedTime();
}
if ( $mTime ) {
$file->updateModifiedTime();
$file->updateChangedTime();
} elseif ( $cTime ) {
$file->updateChangedTime();
$file->getParent()->updateChangedTime();
$file->getParent()->save();
}

$file->save();
Expand Down

0 comments on commit 2545dc2

Please sign in to comment.