MediaWiki r30891 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r30890‎ | r30891 (on ViewVC)‎ | r30892 >
Date:00:31, 13 February 2008
Author:skizzerz
Status:old
Tags:
Comment:
* EditPageBeforeEditButtons hook now passes EditPage object for reference
Modified paths:

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
===================================================================
--- trunk/phase3/docs/hooks.txt	(revision 30890)
+++ trunk/phase3/docs/hooks.txt	(revision 30891)
@@ -520,6 +520,7 @@
 $error to allow the edit to proceed.
 
 'EditPageBeforeEditButtons':  allows modifying the edit buttons below the textarea in the edit form
+&$editpage: The current EditPage object
 &$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff"
 
 'EditSectionLink': Override the return value of Linker::editSectionLink()
Index: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php	(revision 30890)
+++ trunk/phase3/includes/EditPage.php	(revision 30891)
@@ -1962,7 +1962,7 @@
 		);
 		$buttons['diff'] = wfElement('input', $temp, '');
 		
-		wfRunHooks( 'EditPageBeforeEditButtons', array( &$buttons ) );
+		wfRunHooks( 'EditPageBeforeEditButtons', array( &$this, &$buttons ) );
 		return $buttons;
 	}
 

Status & tagging log

  • 15:24, 12 September 2011 Meno25 (Talk | contribs) changed the status of r30891 [removed: ok added: old]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox