From 405abdb61aed41b3c68dc3542bd83f9fdaa20892 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 6 Aug 2014 13:35:48 +0100 Subject: [PATCH] Move MW_LC_VERSION to class constant instead of global define Change-Id: I184ec13081a5cf60d593a1c25c091b1db7b344a9 --- includes/cache/LocalisationCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.20.1