mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Moving dependencies from ext.echo.base to more specific modules
mediawiki.api and mediawiki.Uri are desktop-only modules that are not actually needed by ext.echo.base. Moving the dependency declarations to more specific modules so that ext.echo.base is usable by mobile notifications. ResourceLoader is smart enough to not double-load them, so there should be no performance difference. Also removing unused 'cancel' message. Change-Id: I9fa8c4501e038ded9125c3b43e5207c355af2db9
This commit is contained in:
parent
08fc83b6de
commit
4380e81afe
11
Echo.php
11
Echo.php
|
@ -141,15 +141,12 @@ $echoResourceTemplate = array(
|
|||
);
|
||||
|
||||
$wgResourceModules += array(
|
||||
// ext.echo.base is used by mobile notifications as well, so be sure not to add any
|
||||
// dependencies that do not target mobile.
|
||||
'ext.echo.base' => $echoResourceTemplate + array(
|
||||
'styles' => 'base/ext.echo.base.css',
|
||||
'scripts' => 'base/ext.echo.base.js',
|
||||
'dependencies' => array(
|
||||
'mediawiki.api',
|
||||
'mediawiki.Uri',
|
||||
),
|
||||
'messages' => array(
|
||||
'cancel',
|
||||
'echo-error-preference',
|
||||
'echo-error-token',
|
||||
),
|
||||
|
@ -166,6 +163,8 @@ $wgResourceModules += array(
|
|||
),
|
||||
'dependencies' => array(
|
||||
'ext.echo.base',
|
||||
'mediawiki.api',
|
||||
'mediawiki.Uri',
|
||||
'mediawiki.util',
|
||||
'mediawiki.jqueryMsg',
|
||||
'mediawiki.user',
|
||||
|
@ -187,6 +186,8 @@ $wgResourceModules += array(
|
|||
'styles' => 'special/ext.echo.special.css',
|
||||
'dependencies' => array(
|
||||
'ext.echo.base',
|
||||
'mediawiki.api',
|
||||
'mediawiki.Uri',
|
||||
'mediawiki.ui',
|
||||
'mediawiki.jqueryMsg',
|
||||
'mediawiki.user',
|
||||
|
|
Loading…
Reference in a new issue