diff --git a/Scribunto.namespaces.php b/Scribunto.namespaces.php index 3be32cf7..c0028977 100644 --- a/Scribunto.namespaces.php +++ b/Scribunto.namespaces.php @@ -3,6 +3,6 @@ $namespaceNames = array(); $namespaceNames['en'] = array( - NS_MODULE => 'Module', - NS_MODULE_TALK => 'Module_talk', + 828 => 'Module', + 829 => 'Module_talk', ); diff --git a/Scribunto.php b/Scribunto.php index 9cbcda55..c433675f 100644 --- a/Scribunto.php +++ b/Scribunto.php @@ -134,14 +134,6 @@ $wgScribuntoEngineConf = array( ), ); -/** - * Script namespace numbers. - */ -$wgScribuntoNamespaceNumbers = array( - 'Module' => 20, - 'Module_talk' => 21, -); - /** * Set to true to enable the SyntaxHighlight_GeSHi extension */ @@ -152,10 +144,5 @@ $wgScribuntoUseGeSHi = false; */ $wgScribuntoUseCodeEditor = false; -function efDefineScribuntoNamespace() { - global $wgScribuntoNamespaceNumbers; - define( 'NS_MODULE', $wgScribuntoNamespaceNumbers['Module'] ); - define( 'NS_MODULE_TALK', $wgScribuntoNamespaceNumbers['Module_talk'] ); -} - -$wgExtensionFunctions[] = 'efDefineScribuntoNamespace'; +define( 'NS_MODULE', 828 ); +define( 'NS_MODULE_TALK', 829 );