Merge "Language: s/error_log/wfWarn/"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 9 Sep 2014 19:50:03 +0000 (19:50 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 9 Sep 2014 19:50:03 +0000 (19:50 +0000)
1  2 
languages/Language.php

diff --combined languages/Language.php
@@@ -3142,7 -3142,7 +3142,7 @@@ class Language 
                }
  
                if ( !is_array( $rawEntry ) ) {
-                       error_log( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" );
+                       wfWarn( "\"$rawEntry\" is not a valid magic word for \"$mw->mId\"" );
                } else {
                        $mw->mCaseSensitive = $rawEntry[0];
                        $mw->mSynonyms = array_slice( $rawEntry, 1 );
         * Get the list of variants supported by this language
         * see sample implementation in LanguageZh.php
         *
 -       * @return array an array of language codes
 +       * @return array An array of language codes
         */
        public function getVariants() {
                return $this->mConverter->getVariants();
         *
         * @since 1.22
         * @param string $code Language code
 -       * @return array array( fallbacks, site fallbacks )
 +       * @return array Array( fallbacks, site fallbacks )
         */
        public static function getFallbacksIncludingSiteLanguage( $code ) {
                global $wgLanguageCode;
         *
         * @since 1.19
         * @param string $code Language code
 -       * @return array of message keys (strings)
 +       * @return array Array of message keys (strings)
         */
        public static function getMessageKeysFor( $code ) {
                return self::getLocalisationCache()->getSubItemList( $code, 'messages' );