Language: s/error_log/wfWarn/
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 23 Jul 2014 20:23:50 +0000 (22:23 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 21 Aug 2014 20:28:22 +0000 (20:28 +0000)
This code path gets triggered when I run unit tests locally and
produces billions of lines of output. I don't care why, I just want it
to shut up.

Change-Id: I09a5cbaea80ff9d7afc22c83f972890cfa25d127

languages/Language.php

index ce6d0f7..dbafc3c 100644 (file)
@@ -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 );