* (bug 10166) Fix a PHP warning in Language::getMagic

Patch by Nate Lallouche
This commit is contained in:
Raimond Spekking 2007-12-06 22:16:47 +00:00
parent 0a04fb1ed5
commit b5ff4ffe8f
2 changed files with 4 additions and 2 deletions

View file

@ -225,6 +225,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
to 'stderr' at runtime.
* (bug 12148) Text highlight wasn't applied to cleanly deleted and added
lines in diff output
* (bug 10166) Fix a PHP warning in Language::getMagic
== Parser changes in 1.12 ==

View file

@ -1532,9 +1532,10 @@ class Language {
if( !is_array( $rawEntry ) ) {
error_log( "\"$rawEntry\" is not a valid magic thingie for \"$mw->mId\"" );
} else {
$mw->mCaseSensitive = $rawEntry[0];
$mw->mSynonyms = array_slice( $rawEntry, 1 );
}
$mw->mCaseSensitive = $rawEntry[0];
$mw->mSynonyms = array_slice( $rawEntry, 1 );
}
/**