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
@@ -520,6 +520,7 @@
521521 $error to allow the edit to proceed.
522522
523523 'EditPageBeforeEditButtons': allows modifying the edit buttons below the textarea in the edit form
 524+&$editpage: The current EditPage object
524525 &$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff"
525526
526527 'EditSectionLink': Override the return value of Linker::editSectionLink()
Index: trunk/phase3/includes/EditPage.php
@@ -1962,7 +1962,7 @@
19631963 );
19641964 $buttons['diff'] = wfElement('input', $temp, '');
19651965
1966 - wfRunHooks( 'EditPageBeforeEditButtons', array( &$buttons ) );
 1966+ wfRunHooks( 'EditPageBeforeEditButtons', array( &$this, &$buttons ) );
19671967 return $buttons;
19681968 }
19691969

Status & tagging log

  • 15:24, 12 September 2011 Meno25 (talk | contribs) changed the status of r30891 [removed: ok added: old]