Fix totally broken last commit, misread the existing code
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 26 Sep 2008 21:35:03 +0000 (21:35 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 26 Sep 2008 21:35:03 +0000 (21:35 +0000)
includes/GlobalFunctions.php

index ec59ed7..e241bca 100644 (file)
@@ -687,7 +687,7 @@ function wfMsgExt( $key, $options ) {
        $args = func_get_args();
        array_shift( $args );
        array_shift( $args );
-       $options = array($options);
+       $options = (array)$options;
 
        foreach( $options as $arrayKey => $option ) {
                if( !preg_match( '/^[0-9]+|language$/', $arrayKey ) ) {