Skip to content

Commit

Permalink
Fix for FS#2522 / Now all places of $lang['restored'] are covered wit…
Browse files Browse the repository at this point in the history
…h the restored-date information
  • Loading branch information
lupo49 committed Jun 10, 2012
1 parent f5e8b87 commit 7656ee3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function act_edit($act){
//set summary default
if(!$SUM){
if($REV){
$SUM = $lang['restored'];
$SUM = sprintf($lang['restored'], dformat($REV));
}elseif(!$INFO['exists']){
$SUM = $lang['created'];
}
Expand Down
2 changes: 1 addition & 1 deletion inc/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ function media_upload_finish($fn_tmp, $fn, $id, $imime, $overwrite, $move = 'mov
media_notify($id,$fn,$imime,$old);
// add a log entry to the media changelog
if ($REV){
addMediaLogEntry($new, $id, DOKU_CHANGE_TYPE_REVERT, $lang['restored'], $REV);
addMediaLogEntry($new, $id, DOKU_CHANGE_TYPE_REVERT, sprintf($lang['restored'], dformat($REV)), $REV);
} elseif ($overwrite) {
addMediaLogEntry($new, $id, DOKU_CHANGE_TYPE_EDIT);
} else {
Expand Down

0 comments on commit 7656ee3

Please sign in to comment.