From: <var...@us...> - 2009-02-13 16:15:22
|
Revision: 6493 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6493&view=rev Author: vargenau Date: 2009-02-13 16:15:15 +0000 (Fri, 13 Feb 2009) Log Message: ----------- Set author and modification time Modified Paths: -------------- trunk/lib/plugin/WikiAdminRename.php Modified: trunk/lib/plugin/WikiAdminRename.php =================================================================== --- trunk/lib/plugin/WikiAdminRename.php 2009-02-13 10:18:44 UTC (rev 6492) +++ trunk/lib/plugin/WikiAdminRename.php 2009-02-13 16:15:15 UTC (rev 6493) @@ -92,6 +92,9 @@ $meta = $current->_data; $text = $current->getPackedContent(); $meta['summary'] = sprintf(_("Renamed page from '%s' to '%s'"), $name, $newname); + $meta['is_minor_edit'] = 0; + $meta['author'] = $request->_user->UserName(); + unset($meta['mtime']); // force new date $page->save($text, $version + 1, $meta); $ul->pushContent(HTML::li(fmt("Renamed page '%s' to '%s'.", $name, WikiLink($newname)))); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |