From bfbb9928e593ca413b438ebcc2de55ccbf948eda Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 14 Dec 2012 14:06:20 -0800 Subject: [PATCH] Use $IP instead of hard-coded relative path. Change-Id: I6e631116ca73896527eee7a607204071c1467414 --- includes/LocalisationCache.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index cc726d71ca..01c8f76404 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -519,9 +519,11 @@ class LocalisationCache { * @since 1.20 */ public function getPluralRules( $code ) { + global $IP; + if ( $this->pluralRules === null ) { - $cldrPlural = __DIR__ . "/../languages/data/plurals.xml"; - $mwPlural = __DIR__ . "/../languages/data/plurals-mediawiki.xml"; + $cldrPlural = "$IP/languages/data/plurals.xml"; + $mwPlural = "$IP/languages/data/plurals-mediawiki.xml"; // Load CLDR plural rules $this->loadPluralFile( $cldrPlural ); if ( file_exists( $mwPlural ) ) { -- 2.20.1