For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
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; }