summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorlupo49 <post@lupo49.de>2012-06-10 17:34:42 +0200
committerlupo49 <post@lupo49.de>2012-06-10 17:34:42 +0200
commit7656ee3b68e4877d64b1931c584ad433da62632c (patch)
treef6683a69da9fce5ebd220992457e7635cf22d4fa /inc
parentf5e8b87324f800ddf572684b4cfeb414e1d34d21 (diff)
downloadrpg-7656ee3b68e4877d64b1931c584ad433da62632c.tar.gz
rpg-7656ee3b68e4877d64b1931c584ad433da62632c.tar.bz2
Fix for FS#2522 / Now all places of $lang['restored'] are covered with the restored-date information
Diffstat (limited to 'inc')
-rw-r--r--inc/actions.php2
-rw-r--r--inc/media.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/actions.php b/inc/actions.php
index adc251bc4..e85cbfccc 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -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'];
}
diff --git a/inc/media.php b/inc/media.php
index 841a5218e..2462a1deb 100644
--- a/inc/media.php
+++ b/inc/media.php
@@ -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 {