Merge "Allow the signature wikitext to be overridden locally"

This commit is contained in:
jenkins-bot 2016-05-24 15:08:26 +00:00 committed by Gerrit Code Review
commit 95c0637a10
2 changed files with 3 additions and 1 deletions

View file

@ -312,6 +312,8 @@ class WikiEditorHooks {
// expose magic words for use by the wikieditor toolbar // expose magic words for use by the wikieditor toolbar
WikiEditorHooks::getMagicWords( $vars ); WikiEditorHooks::getMagicWords( $vars );
$vars['mw.msg.wikieditor'] = wfMessage( 'sig-text', '~~~~' )->inContentLanguage()->text();
return true; return true;
} }

View file

@ -195,7 +195,7 @@ $.wikiEditor.modules.toolbar.config = {
action: { action: {
type: 'encapsulate', type: 'encapsulate',
options: { options: {
pre: '--~~~~' pre: mw.config.get( 'mw.msg.wikieditor' )
} }
} }
} }