From: Brion Vibber Date: Thu, 31 Aug 2006 10:19:12 +0000 (+0000) Subject: Add a more detailed error message to aid in debugging of broken magic words X-Git-Tag: 1.31.0-rc.0~55870 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=936158b58843838291e86af7d9d0571661e4812f;p=lhc%2Fweb%2Fwiklou.git Add a more detailed error message to aid in debugging of broken magic words --- diff --git a/languages/Language.php b/languages/Language.php index a32b374a7d..bb90d16ff4 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -936,6 +936,9 @@ class Language { } } + if( !is_array( $rawEntry ) ) { + error_log( "\"$rawEntry\" is not a valid magic thingie for \"$mw->mId\"" ); + } $mw->mCaseSensitive = $rawEntry[0]; $mw->mSynonyms = array_slice( $rawEntry, 1 ); }