From: Aaron Schulz Date: Fri, 14 Dec 2012 22:06:20 +0000 (-0800) Subject: Use $IP instead of hard-coded relative path. X-Git-Tag: 1.31.0-rc.0~21296 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=bfbb9928e593ca413b438ebcc2de55ccbf948eda;p=lhc%2Fweb%2Fwiklou.git Use $IP instead of hard-coded relative path. Change-Id: I6e631116ca73896527eee7a607204071c1467414 --- 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 ) ) {