Jump to content

Wikia code/languages/Language.php

From mediawiki.org
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\languages\Language.php	2011-07-18 22:35:03.223632800 +0100
+++ D:\Programming\SVN\wikia\trunk\languages\Language.php	2011-08-17 15:29:07.141601600 +0100
@@ -1966,7 +1966,7 @@
 		}
 
 		if( !is_array( $rawEntry ) ) {
-			error_log( "\"$rawEntry\" is not a valid magic thingie for \"$mw->mId\"" );
+			wfDebug( __METHOD__ . ": \"$rawEntry\" is not a valid magic thingie for \"$mw->mId\"" );
 		} else {
 			$mw->mCaseSensitive = $rawEntry[0];
 			$mw->mSynonyms = array_slice( $rawEntry, 1 );
@@ -2510,6 +2510,13 @@
 		return self::getFileName( "$IP/languages/messages/Messages", $code, '.php' );
 	}
 
+	// wikia changes begin
+	static function getAdditionalMessagesFileName( $code ) {
+		global $IP;
+		return self::getFileName( "$IP/languages/messages/wikia/Messages", $code, '.php' );
+	}
+	// wikia changes end
+
 	static function getClassFileName( $code ) {
 		global $IP;
 		return self::getFileName( "$IP/languages/classes/Language", $code, '.php' );