mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
GalleryInspector: Use namespace id constant
Change-Id: Ia51634e84cf984d8ed4ecdab87590111bf12478f
This commit is contained in:
parent
83620175ca
commit
a917871505
|
@ -43,7 +43,7 @@ ve.ui.MWGalleryInspector.static.modelClasses = [ ve.dm.MWGalleryNode ];
|
|||
/** */
|
||||
ve.ui.MWGalleryInspector.prototype.getInputPlaceholder = function () {
|
||||
// 'File:' is always in content language
|
||||
return mw.config.get( 'wgFormattedNamespaces' )[ '6' ] + ':' +
|
||||
return mw.config.get( 'wgFormattedNamespaces' )[ mw.config.get( 'wgNamespaceIds' ).file ] + ':' +
|
||||
ve.msg( 'visualeditor-mwgalleryinspector-placeholder' );
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue