NameSpace

This commit is contained in:
v 2019-02-05 17:19:02 +03:00
parent 9e0cc584ba
commit a77e73c8c5

View File

@ -284,9 +284,9 @@ class NameSpaceSet {
Object.keys( SiteInfo.namespaces ).forEach( ns => {
const nsInfo = SiteInfo.namespaces[ ns ]
this.nameSpaces[ ns ] = nsInfo
if ( nsInfo[ '*' ] )
if ( nsInfo[ '*' ] !== undefined )
this.nameSpaces[ nsInfo[ '*' ]] = nsInfo
if ( nsInfo.canonical )
if ( nsInfo.canonical !== undefined )
this.nameSpaces[ nsInfo.canonical ] = nsInfo
})
if ( SiteInfo.namespacealiases ) {