mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 09:10:00 +00:00
Minor code cleanups in Hooks class
Change-Id: Ied3d5241df04b3fd070319070c0addfd3856e3bf
This commit is contained in:
parent
7d010a616f
commit
10a43a9ae3
|
@ -42,8 +42,7 @@ class Hooks implements
|
|||
OutputPageBeforeHTMLHook
|
||||
{
|
||||
|
||||
/** @var Config */
|
||||
private $config;
|
||||
private Config $config;
|
||||
|
||||
public function __construct( Config $mainConfig ) {
|
||||
$this->config = $mainConfig;
|
||||
|
@ -80,7 +79,7 @@ class Hooks implements
|
|||
$name = 'jquery.uls.data';
|
||||
if ( !isset( $resourceModules[$name] ) && !$resourceLoader->isModuleRegistered( $name ) ) {
|
||||
$resourceLoader->register( [
|
||||
'jquery.uls.data' => [
|
||||
$name => [
|
||||
'localBasePath' => dirname( __DIR__ ),
|
||||
'remoteExtPath' => 'TemplateData',
|
||||
'scripts' => [
|
||||
|
|
Loading…
Reference in a new issue