<?php
/**
* Provide things related to namespaces
+ * @package MediaWiki
*/
/**
NS_CATEGORY_TALK => 'Category_talk'
);
-if(isset($wgExtraNamespaces)) {
- $wgCanonicalNamespaceNames=$wgCanonicalNamespaceNames+$wgExtraNamespaces;
+if( defined( 'MEDIAWIKI' ) && is_array( $wgExtraNamespaces ) ) {
+ $wgCanonicalNamespaceNames = $wgCanonicalNamespaceNames + $wgExtraNamespaces;
}
/**
*
* These are synonyms for the names given in the language file
* Users and translators should not change them
-*/
+ *
+ * @package MediaWiki
+ */
class Namespace {
/**#@+