From: Chad Horohoe Date: Wed, 6 Aug 2014 12:35:48 +0000 (+0100) Subject: Move MW_LC_VERSION to class constant instead of global define X-Git-Tag: 1.31.0-rc.0~14577^2 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;h=405abdb61aed41b3c68dc3542bd83f9fdaa20892;p=lhc%2Fweb%2Fwiklou.git Move MW_LC_VERSION to class constant instead of global define Change-Id: I184ec13081a5cf60d593a1c25c091b1db7b344a9 --- diff --git a/includes/cache/LocalisationCache.php b/includes/cache/LocalisationCache.php index cf87129732..eb6a57a3cd 100644 --- a/includes/cache/LocalisationCache.php +++ b/includes/cache/LocalisationCache.php @@ -20,8 +20,6 @@ * @file */ -define( 'MW_LC_VERSION', 2 ); - /** * Class for caching the contents of localisation files, Messages*.php * and *.i18n.php. @@ -35,6 +33,8 @@ define( 'MW_LC_VERSION', 2 ); * as grammatical transformation, is done by the caller. */ class LocalisationCache { + const VERSION = 2; + /** Configuration associative array */ private $conf; @@ -913,7 +913,7 @@ class LocalisationCache { # Add cache dependencies for any referenced globals $deps['wgExtensionMessagesFiles'] = new GlobalDependency( 'wgExtensionMessagesFiles' ); $deps['wgMessagesDirs'] = new GlobalDependency( 'wgMessagesDirs' ); - $deps['version'] = new ConstantDependency( 'MW_LC_VERSION' ); + $deps['version'] = new ConstantDependency( 'LocalisationCache::VERSION' ); # Add dependencies to the cache entry $allData['deps'] = $deps;