r16293 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16292‎ | r16293 | r16294 >
Date:10:19, 31 August 2006
Author:brion
Status:old
Tags:
Comment:
Add a more detailed error message to aid in debugging of broken magic words
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -936,6 +936,9 @@
937937 }
938938 }
939939
 940+ if( !is_array( $rawEntry ) ) {
 941+ error_log( "\"$rawEntry\" is not a valid magic thingie for \"$mw->mId\"" );
 942+ }
940943 $mw->mCaseSensitive = $rawEntry[0];
941944 $mw->mSynonyms = array_slice( $rawEntry, 1 );
942945 }