Fix broken oldParser call in r108230
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 6 Jan 2012 14:17:03 +0000 (14:17 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 6 Jan 2012 14:17:03 +0000 (14:17 +0000)
resources/mediawiki/mediawiki.jqueryMsg.js

index 78bc171..ccc2b2e 100644 (file)
                // we'd have to cache the parser as a member of this.map, which sounds a bit ugly.
                
                // Do not use mw.jqueryMsg unless required
+               var _this = this;
                if ( this.map.get( this.key ).indexOf( '{{' ) < 0 ) {
                        // Fall back to mw.msg's simple parser
-                       return oldParser( this.key, this.parameters );
+                       return oldParser.apply( _this );
                }
                
                var messageFunction = mw.jqueryMsg.getMessageFunction( { 'messages': this.map } );