Fixed syntax errors in message get function
authorTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 16 Sep 2010 21:12:41 +0000 (21:12 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Thu, 16 Sep 2010 21:12:41 +0000 (21:12 +0000)
resources/mediawiki/mediawiki.js

index 282c52a..217ac99 100644 (file)
@@ -99,7 +99,8 @@ window.mediaWiki = new ( function( $ ) {
                                        return results;
                                } else if ( typeof selection === 'string' ) {
                                        if ( typeof values[selection] === 'undefined' ) {
-                                               return 'fallback' in options !== 'undefined' ? options.fallback : null;
+                                               return typeof options === 'object' && 'fallback' in options ?
+                                                       options.fallback : '<' + selection + '>';
                                        } else {
                                                if ( typeof parser === 'function' ) {
                                                        return parser( values[selection], options );