mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-24 07:23:30 +00:00
Namespace special page classes
Change-Id: I005f6674c9cc80c5c9e26ae84acfbceebb43734e
This commit is contained in:
parent
319d422398
commit
a7309d2b1f
|
@ -46,8 +46,8 @@
|
|||
"gadgets-definition-edit"
|
||||
],
|
||||
"SpecialPages": {
|
||||
"Gadgets": "MediaWiki\\Extension\\Gadgets\\SpecialGadgets",
|
||||
"GadgetUsage": "MediaWiki\\Extension\\Gadgets\\SpecialGadgetUsage"
|
||||
"Gadgets": "MediaWiki\\Extension\\Gadgets\\Special\\SpecialGadgets",
|
||||
"GadgetUsage": "MediaWiki\\Extension\\Gadgets\\Special\\SpecialGadgetUsage"
|
||||
},
|
||||
"APIListModules": {
|
||||
"gadgetcategories": "MediaWiki\\Extension\\Gadgets\\Api\\ApiQueryGadgetCategories",
|
||||
|
|
|
@ -31,6 +31,7 @@ use IContextSource;
|
|||
use InvalidArgumentException;
|
||||
use ManualLogEntry;
|
||||
use MediaWiki\Extension\Gadgets\Content\GadgetDefinitionContent;
|
||||
use MediaWiki\Extension\Gadgets\Special\SpecialGadgetUsage;
|
||||
use MediaWiki\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Hook\DeleteUnknownPreferencesHook;
|
||||
use MediaWiki\Hook\EditFilterMergedContentHook;
|
||||
|
@ -420,7 +421,7 @@ class Hooks implements
|
|||
* @param array &$queryPages
|
||||
*/
|
||||
public function onWgQueryPages( &$queryPages ) {
|
||||
$queryPages[] = [ 'SpecialGadgetUsage', 'GadgetUsage' ];
|
||||
$queryPages[] = [ SpecialGadgetUsage::class, 'GadgetUsage' ];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -24,9 +24,10 @@
|
|||
* @author Niharika Kohli <niharika@wikimedia.org>
|
||||
*/
|
||||
|
||||
namespace MediaWiki\Extension\Gadgets;
|
||||
namespace MediaWiki\Extension\Gadgets\Special;
|
||||
|
||||
use Html;
|
||||
use MediaWiki\Extension\Gadgets\GadgetRepo;
|
||||
use OutputPage;
|
||||
use QueryPage;
|
||||
use Skin;
|
|
@ -9,11 +9,13 @@
|
|||
* @license GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
namespace MediaWiki\Extension\Gadgets;
|
||||
namespace MediaWiki\Extension\Gadgets\Special;
|
||||
|
||||
use Html;
|
||||
use HTMLForm;
|
||||
use InvalidArgumentException;
|
||||
use MediaWiki\Extension\Gadgets\Gadget;
|
||||
use MediaWiki\Extension\Gadgets\GadgetRepo;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Title\Title;
|
||||
use Sanitizer;
|
Loading…
Reference in a new issue