From c2cb41aed5089bb121c2e39930a34c8dee4b8068 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 12 Jun 2013 16:00:15 +0000 Subject: [PATCH] Reverting a wiki page should give the name of the user who did the revert git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8794 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/loadsave.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/loadsave.php b/lib/loadsave.php index ebe2f5133..3b7badd1b 100644 --- a/lib/loadsave.php +++ b/lib/loadsave.php @@ -1122,6 +1122,7 @@ function RevertPage(&$request) $versiondata = $rev->_data; $versiondata['summary'] = sprintf(_("revert to version %d"), $version); $versiondata['mtime'] = time(); + $versiondata['author'] = $request->getUser()->getId(); $new = $page->save($content, $currversion + 1, $versiondata); $dbi->touch(); -- 2.42.0