mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-14 19:31:44 +00:00
PortableInfoboxBuilder: use localised template namespace (#55)
This commit is contained in:
parent
04cfa2941d
commit
e6ceceaf52
|
@ -249,7 +249,8 @@
|
|||
return;
|
||||
}
|
||||
|
||||
let namespace = ( title.substring( 0, 9 ) !== 'Template:' ? 'Template:' : '' );
|
||||
let template = mw.config.get( 'wgFormattedNamespaces' )[10],
|
||||
namespace = ( title.substring( 0, template.length ) !== template ? ( template + ':' ) : '' );
|
||||
|
||||
this.api.postWithToken( 'csrf', {
|
||||
action: 'edit',
|
||||
|
|
Loading…
Reference in a new issue