Use strict parameter on in_array() checks in wfMsgExt(). In PHP 5.1.6 this was whingi...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 14 Nov 2008 00:46:53 +0000 (00:46 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 14 Nov 2008 00:46:53 +0000 (00:46 +0000)
commit7b972ea1a0c506a5d22df9dd3d8af46e1df30767
tree2a87478eb40195f43185ab49b4bd74c22e11bd59
parent19f1fa7576a7f33de0845e4f00ed9a13f73b8476
Use strict parameter on in_array() checks in wfMsgExt(). In PHP 5.1.6 this was whinging when a Language object was passed as 'language' parameter, trying to convert it to an int (!?).
Since we're only checking for exact strings, an exact match is just fine and it stops the whinging. (Saw no such problem on 5.2.6.)

Example whinge:
Notice: Object of class Language could not be converted to int in /Library/WebServer/Documents/trunk/includes/GlobalFunctions.php on line 742
includes/GlobalFunctions.php