r63599 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63598‎ | r63599 | r63600 >
Date:12:32, 11 March 2010
Author:ialex
Status:deferred
Tags:
Comment:
An extension function is not needed to define a hook ;)
Modified paths:
  • /trunk/extensions/GoToCategory/GoToCategory.php (modified) (history)

Diff [purge]

Index: trunk/extensions/GoToCategory/GoToCategory.php
@@ -18,14 +18,8 @@
1919 'url' => 'http://www.mediawiki.org/wiki/Extension:GoToCategory',
2020 );
2121
22 -$wgExtensionFunctions[] = 'efGoToCategory_Setup';
 22+$wgHooks['SpecialSearchNogomatch'][] = 'efGoToCategory_SpecialSearchNogomatch';
2323
24 -function efGoToCategory_Setup() {
25 - global $wgHooks;
26 - $wgHooks['SpecialSearchNogomatch'][] = 'efGoToCategory_SpecialSearchNogomatch';
27 - return true;
28 -}
29 -
3024 function efGoToCategory_SpecialSearchNogomatch($t) {
3125 global $wgOut, $wgRequest;
3226

Status & tagging log