Remove unnecessary conditional
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 26 Sep 2008 21:31:17 +0000 (21:31 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 26 Sep 2008 21:31:17 +0000 (21:31 +0000)
includes/GlobalFunctions.php

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