Set ULS_VERSION when using extension registration
This unbreaks Translate and CleanChanges who depend on the constant. Change-Id: I8bfb9e2aaeb77351beefb130f71daeee4e07afae
This commit is contained in:
@@ -19,6 +19,11 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
class UniversalLanguageSelectorHooks {
|
class UniversalLanguageSelectorHooks {
|
||||||
|
// Used when extension registration in use which skips the main php file
|
||||||
|
public static function setVersionConstant() {
|
||||||
|
define( 'ULS_VERSION', '2015-06-08' );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether ULS user toolbar (language selection and settings) is enabled.
|
* Whether ULS user toolbar (language selection and settings) is enabled.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -88,6 +88,7 @@
|
|||||||
"@ULSCompactLinks": "Whether the \"Compact language links\" Beta Feature is exposed. Requires $wgULSPosition to be \"interlanguage\". Defaults to false. @since 2014.03",
|
"@ULSCompactLinks": "Whether the \"Compact language links\" Beta Feature is exposed. Requires $wgULSPosition to be \"interlanguage\". Defaults to false. @since 2014.03",
|
||||||
"ULSCompactLinks": false
|
"ULSCompactLinks": false
|
||||||
},
|
},
|
||||||
|
"callback": "UniversalLanguageSelectorHooks::setVersionConstant",
|
||||||
"ResourceModules": {
|
"ResourceModules": {
|
||||||
"ext.uls.languagenames": {
|
"ext.uls.languagenames": {
|
||||||
"class": "ResourceLoaderULSModule"
|
"class": "ResourceLoaderULSModule"
|
||||||
|
|||||||
Reference in New Issue
Block a user