Pass $mediaWiki object to MediawikiPerformAction hook.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 1 Jul 2008 03:56:16 +0000 (03:56 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 1 Jul 2008 03:56:16 +0000 (03:56 +0000)
RELEASE-NOTES
docs/hooks.txt
includes/Wiki.php

index a5238ee..969f1c6 100644 (file)
@@ -176,6 +176,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Allow extensions to modify the user creation form by calling addInputItem();
 * Add meta generator tag to HTML output
 * Two new hooks, ExtendJSGlobalVars and wfMessageCacheReplace added
+* MediawikiPerformAction hook is now passed the Mediawiki object
  
 === Bug fixes in 1.13 ===
 
index 5da995e..4fab816 100644 (file)
@@ -829,6 +829,7 @@ $article: $wgArticle
 $title:   $wgTitle
 $user:    $wgUser
 $request: $wgRequest
+$this:    The $mediawiki object
 
 'MessagesPreLoad': When loading a message from the database
 $title: title of the message (string)
index 04618e0..a1bb307 100644 (file)
@@ -418,7 +418,7 @@ class MediaWiki {
        function performAction( &$output, &$article, &$title, &$user, &$request ) {
                wfProfileIn( __METHOD__ );
 
-               if ( !wfRunHooks( 'MediaWikiPerformAction', array( $output, $article, $title, $user, $request ) ) ) {
+               if ( !wfRunHooks( 'MediaWikiPerformAction', array( $output, $article, $title, $user, $request, $this ) ) ) {
                        wfProfileOut( __METHOD__ );
                        return;
                }