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:
Niklas Laxström
2015-07-07 21:28:09 +02:00
parent c3322ba830
commit 8a7bccc5ce
2 changed files with 6 additions and 0 deletions

View File

@@ -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.
*