diff --git a/UniversalLanguageSelector.hooks.php b/UniversalLanguageSelector.hooks.php index 4c7a5534..5724deb2 100644 --- a/UniversalLanguageSelector.hooks.php +++ b/UniversalLanguageSelector.hooks.php @@ -19,6 +19,11 @@ */ 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. * diff --git a/extension.json b/extension.json index 5ef3b119..76250154 100644 --- a/extension.json +++ b/extension.json @@ -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": false }, + "callback": "UniversalLanguageSelectorHooks::setVersionConstant", "ResourceModules": { "ext.uls.languagenames": { "class": "ResourceLoaderULSModule"