define new namespaces in extensions.
Without the hook the list could be initialised too early and some namespaces
would be left undefined. Was causing problems at translatewiki.net.
'BookInformation': Before information output on Special:Booksources
$isbn: ISBN to show information for
$output: OutputPage object in use
+
+'CanonicalNamespaces': For extensions adding their own namespaces or altering the defaults
+&$namespaces: Array of namespace numbers with they canonical names
'CategoryPageView': before viewing a categorypage in CategoryPage::view
$catpage: CategoryPage instance
$namespaces = $wgCanonicalNamespaceNames;
}
$namespaces[NS_MAIN] = '';
+ wfRunHooks( 'CanonicalNamespaces', array( &$namespaces ) );
}
return $namespaces;
}