Index: trunk/phase3/resources/mediawiki/mediawiki.jqueryMsg.js |
— | — | @@ -670,9 +670,10 @@ |
671 | 671 | // we'd have to cache the parser as a member of this.map, which sounds a bit ugly. |
672 | 672 | |
673 | 673 | // Do not use mw.jqueryMsg unless required |
| 674 | + var _this = this; |
674 | 675 | if ( this.map.get( this.key ).indexOf( '{{' ) < 0 ) { |
675 | 676 | // Fall back to mw.msg's simple parser |
676 | | - return oldParser( this.key, this.parameters ); |
| 677 | + return oldParser.apply( _this ); |
677 | 678 | } |
678 | 679 | |
679 | 680 | var messageFunction = mw.jqueryMsg.getMessageFunction( { 'messages': this.map } ); |