Changes default value so that it's not converted to array( 0 => '' ) by the (array...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 25 Mar 2011 11:07:59 +0000 (11:07 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 25 Mar 2011 11:07:59 +0000 (11:07 +0000)
This was breaking the check whether the magic word was found by Language::getMagic() or not.

includes/MagicWord.php

index a0c14c2..3e66b79 100644 (file)
@@ -178,7 +178,7 @@ class MagicWord {
 
        /**#@-*/
 
-       function __construct($id = 0, $syn = '', $cs = false) {
+       function __construct($id = 0, $syn = array(), $cs = false) {
                $this->mId = $id;
                $this->mSynonyms = (array)$syn;
                $this->mCaseSensitive = $cs;