mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-24 00:06:49 +00:00
Substitute {{SITENAME}} in the title of dialogs
Bug: T62695 Change-Id: I7e5378b37e66b8b35bb7b3aa2121eea3cbf1defd
This commit is contained in:
parent
aee1f28c2d
commit
6a73d06932
|
@ -135,7 +135,7 @@ $.wikiEditor.modules.dialogs = {
|
|||
if ( typeof configuration.modal === 'undefined' ) {
|
||||
configuration.modal = true;
|
||||
}
|
||||
configuration.title = $.wikiEditor.autoMsg( module, 'title' );
|
||||
configuration.title = $.wikiEditor.autoMsg( module, 'title' ).replace( /\{\{SITENAME\}\}/i, mw.config.get( 'wgSiteName' ) );
|
||||
// Transform messages in keys
|
||||
// Stupid JS won't let us do stuff like
|
||||
// foo = { mw.msg( 'bar' ): baz }
|
||||
|
|
Loading…
Reference in a new issue