Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Question about new hook "MediaWikiPerformAction" being added in version 1.13...

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


hoggwild5 at yahoo

May 21, 2008, 2:15 PM

Post #1 of 1 (106 views)
Permalink
Question about new hook "MediaWikiPerformAction" being added in version 1.13...

Question about the new hook 'MediaWikiPerformAction'
that resides in MediaWiki::performAction():

Is there a reason that we're not passing the MediaWiki
class itself as a parameter with the other class
objects ($output, $article, $title, $user, $request)
in this hook?

Since this hook is in the MediaWiki class, and its
purpose is to potentially override the ordinary
actions in the performActions() method, it makes sense
to me to pass the MediaWiki class object to the hook;
otherwise I can't see how it can be used without using
"global $mediaWiki;" inside the hook itself (which
seems a little redundant to me...:/).

Can we add it?

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.