GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • View File
  • Edit File
  • Delete File
  • View Transforms
  • Details

This view

  • Original page
  • New address

GeezerVison is showing phabricator.wikimedia.org — ⇪ mediawiki-pagehistorytool.patch

Page MenuHomePhabricator
Log In
Files F4885

mediawiki-pagehistorytool.patch
Public
Actions

  • View File
  • Edit File
  • Delete File
  • View Transforms
Authored By
• bzimport
Nov 21 2014, 10:10 PM2014-11-21 22:10:44 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None

mediawiki-pagehistorytool.patch
View Options

Index: docs/hooks.txt
===================================================================
--- docs/hooks.txt (revision 39564)
+++ docs/hooks.txt (working copy)
@@ -922,6 +922,11 @@
$pager: the pager
$queryInfo: the query parameters
+'PageHistoryTool' : at the end of the tools line to allow extra tools to be added
+$this: PageHistory object
+$rev: page revision
+&$tools: array of tool links to be constructed
+
'PageRenderingHash': alter the parser cache option hash key
A parser extension which depends on user options should install
this hook and append its values to the key.
Index: includes/PageHistory.php
===================================================================
--- includes/PageHistory.php (revision 39564)
+++ includes/PageHistory.php (working copy)
@@ -326,6 +326,8 @@
);
$tools[] = "<span class=\"mw-history-undo\">{$undolink}</span>";
}
+ #Allow extensions with tools such as Edit Summary to add their links
+ wfRunHooks( 'PageHistoryTool', array( $this, $rev, &$tools) );
}
if( $tools ) {

File Metadata

  • Details
  • Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4449
Default Alt Text
mediawiki-pagehistorytool.patch (1 KB)
Attached ToMode
T15937: Changeable (editable) edit summariesAttached
Detach File

Event Timeline

Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.