GalleryInspector: Use namespace id constant

Change-Id: Ia51634e84cf984d8ed4ecdab87590111bf12478f
This commit is contained in:
Ed Sanders 2015-12-07 18:49:53 +00:00
parent 83620175ca
commit a917871505

View file

@ -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' );
};