From d6b9c7bffaacf3b0b983386eca336e4f8d60a2f3 Mon Sep 17 00:00:00 2001
From: lupo49 <post@lupo49.de>
Date: Tue, 8 May 2012 20:18:35 +0200
Subject: [PATCH] Restore page versions - add timestamp of the restored version
 to to the summary field. This allows easier identifying of which version has
 been restored. (FS#2522)

---
 inc/actions.php               | 2 +-
 inc/lang/de-informal/lang.php | 2 +-
 inc/lang/de/lang.php          | 2 +-
 inc/lang/en/lang.php          | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/inc/actions.php b/inc/actions.php
index 4a2e200ae..458926345 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -380,7 +380,7 @@ function act_revert($act){
     if($REV){
         $text = rawWiki($ID,$REV);
         if(!$text) return 'show'; //something went wrong
-        $sum  = $lang['restored'];
+        $sum = sprintf($lang['restored'], dformat($REV));
     }
 
     // spam check
diff --git a/inc/lang/de-informal/lang.php b/inc/lang/de-informal/lang.php
index 093125aa6..61e5ef3d8 100644
--- a/inc/lang/de-informal/lang.php
+++ b/inc/lang/de-informal/lang.php
@@ -191,7 +191,7 @@ $lang['lastmod']               = 'Zuletzt geändert';
 $lang['by']                    = 'von';
 $lang['deleted']               = 'gelöscht';
 $lang['created']               = 'angelegt';
-$lang['restored']              = 'alte Version wiederhergestellt';
+$lang['restored']              = 'alte Version wiederhergestellt (%s)';
 $lang['external_edit']         = 'Externe Bearbeitung';
 $lang['summary']               = 'Zusammenfassung';
 $lang['noflash']               = 'Das <a href="http://www.adobe.com/products/flashplayer/">Adobe Flash Plugin</a> wird benötigt, um diesen Inhalt anzuzeigen.';
diff --git a/inc/lang/de/lang.php b/inc/lang/de/lang.php
index 63ffd3008..cfbe04396 100644
--- a/inc/lang/de/lang.php
+++ b/inc/lang/de/lang.php
@@ -193,7 +193,7 @@ $lang['lastmod']               = 'Zuletzt geändert';
 $lang['by']                    = 'von';
 $lang['deleted']               = 'gelöscht';
 $lang['created']               = 'angelegt';
-$lang['restored']              = 'alte Version wieder hergestellt';
+$lang['restored']              = 'alte Version wieder hergestellt (%s)';
 $lang['external_edit']         = 'Externe Bearbeitung';
 $lang['summary']               = 'Zusammenfassung';
 $lang['noflash']               = 'Das <a href="http://www.adobe.com/products/flashplayer/">Adobe Flash Plugin</a> wird benötigt, um diesen Inhalt anzuzeigen.';
diff --git a/inc/lang/en/lang.php b/inc/lang/en/lang.php
index c1fc543fb..7f0bf05e9 100644
--- a/inc/lang/en/lang.php
+++ b/inc/lang/en/lang.php
@@ -191,7 +191,7 @@ $lang['lastmod']               = 'Last modified';
 $lang['by']                    = 'by';
 $lang['deleted']               = 'removed';
 $lang['created']               = 'created';
-$lang['restored']              = 'old revision restored';
+$lang['restored']              = 'old revision restored (%s)';
 $lang['external_edit']         = 'external edit';
 $lang['summary']               = 'Edit summary';
 $lang['noflash']               = 'The <a href="http://www.adobe.com/products/flashplayer/">Adobe Flash Plugin</a> is needed to display this content.';
-- 
GitLab