.replace( '$DESCRIPTION', this.getDescriptions() )
.replace( '$DATE', this.getDate() )
.replace( '$SOURCE', this.getSource() )
.replace( '$DESCRIPTION', this.getDescriptions() )
.replace( '$DATE', this.getDate() )
.replace( '$SOURCE', this.getSource() )
- return this.config.comment
+ var
+ isLocal = this.target === 'local',
+ comment = typeof this.config.comment === 'string' ?
+ this.config.comment :
+ this.config.comment[ isLocal ? 'local' : 'foreign' ];
+ return comment
.replace( '$PAGENAME', mw.config.get( 'wgPageName' ) )
.replace( '$HOST', location.host );
};
.replace( '$PAGENAME', mw.config.get( 'wgPageName' ) )
.replace( '$HOST', location.host );
};