Add wgQueryPages hook for Special:GadgetUsage page

Change-Id: Ifacd705886f923e3ee58d4cd004d50c8ec4002d8
This commit is contained in:
niharika29 2015-10-27 13:29:26 +00:00
parent e009534e5c
commit e03ff36127
2 changed files with 13 additions and 0 deletions

View file

@ -223,4 +223,14 @@ class GadgetHooks {
$files = array_merge( $files, glob( "$testDir/*Test.php" ) ); $files = array_merge( $files, glob( "$testDir/*Test.php" ) );
return true; return true;
} }
/**
* Add the GadgetUsage special page to the list of QueryPages.
* @param array &$queryPages
* @return bool
*/
public static function onwgQueryPages( &$queryPages ) {
$queryPages[] = array( 'SpecialGadgetUsage', 'GadgetUsage' );
return true;
}
} }

View file

@ -83,6 +83,9 @@
], ],
"UnitTestsList": [ "UnitTestsList": [
"GadgetHooks::onUnitTestsList" "GadgetHooks::onUnitTestsList"
],
"wgQueryPages": [
"GadgetHooks::onwgQueryPages"
] ]
}, },
"manifest_version": 1 "manifest_version": 1