mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 15:16:50 +00:00
Use namespaced classes
Change-Id: Iaa28a15e8bc1ea29e302aa2180dec0bf67f5817e
This commit is contained in:
parent
96e9c555b1
commit
12a86a9e49
|
@ -22,8 +22,9 @@ namespace Popups;
|
|||
|
||||
use ExtensionRegistry;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Hook\MakeGlobalVariablesScriptHook;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Output\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Output\Hook\MakeGlobalVariablesScriptHook;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Preferences\Hook\GetPreferencesHook;
|
||||
use MediaWiki\ResourceLoader\Hook\ResourceLoaderGetConfigVarsHook;
|
||||
|
@ -236,7 +237,7 @@ class PopupsHooks implements
|
|||
* user has enabled conflicting Reference Tooltips Gadget.
|
||||
*
|
||||
* @param array &$vars variables to be added into the output of OutputPage::headElement
|
||||
* @param \IContextSource $out OutputPage instance calling the hook
|
||||
* @param IContextSource $out OutputPage instance calling the hook
|
||||
*/
|
||||
public function onMakeGlobalVariablesScript( &$vars, $out ): void {
|
||||
$vars['wgPopupsFlags'] = $this->popupsContext->getConfigBitmaskFromUser( $out->getUser() );
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Extension\Gadgets\Gadget;
|
||||
use MediaWiki\Extension\Gadgets\GadgetRepo;
|
||||
use MediaWiki\User\User;
|
||||
|
|
Loading…
Reference in a new issue