Use namespaced classes

Change-Id: Iaa28a15e8bc1ea29e302aa2180dec0bf67f5817e
This commit is contained in:
Umherirrender 2024-06-09 19:14:49 +02:00
parent 96e9c555b1
commit 12a86a9e49
2 changed files with 5 additions and 3 deletions

View file

@ -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() );

View file

@ -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;