mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
Simplify by using mw.util.getUrl
Change-Id: I97a0716e3ff69894c86fae04234d43fcab335b4a
This commit is contained in:
parent
6ea767f171
commit
d73105191d
|
@ -281,9 +281,10 @@
|
|||
function editMessage( action ) {
|
||||
var message = getCurrentMessage( action ),
|
||||
defaultMsg = action === 'warn' ? 'warning' : 'disallowed',
|
||||
url = mw.config.get( 'wgScript' ) +
|
||||
'?title=MediaWiki:' + mw.util.wikiUrlencode( message ) +
|
||||
'&action=edit&preload=MediaWiki:abusefilter-' + defaultMsg;
|
||||
url = mw.util.getUrl( 'MediaWiki:' + message, {
|
||||
action: 'edit',
|
||||
preload: 'MediaWiki:abusefilter-' + defaultMsg
|
||||
} );
|
||||
|
||||
window.open( url, '_blank' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue