Difference between revisions of "Talk:WikiDB/Configuration settings"

From TestWiki
Jump to: navigation, search
(Created page with "== Warning and no table creation == Hi! The following code is bogus : <php>$wgWikiDBNamespaces = 100;</php> $wgWikiDBNamespaces is expected to be an array (in classWikiDB_Ta...")
 
(Moved to Bugs page.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Warning and no table creation ==
 
== Warning and no table creation ==
  
Hi! The following code is bogus :
+
Moved to [[WikiDB/Bugs#Warning and no table creation]].
<php>$wgWikiDBNamespaces = 100;</php>
+
 
+
$wgWikiDBNamespaces is expected to be an array (in classWikiDB_Table.php line 232),
+
so this code generate a warning and no table creation.
+
 
+
the good way to create the namespace in LocalSettings.php is:
+
<php>
+
require_once "$IP/extensions/WikiDB/WikiDB.php";
+
define('NS_TABLE', 100);
+
define('NS_TABLE_TALK', 101);
+
$wgExtraNamespaces[NS_TABLE] = "Table";
+
$wgExtraNamespaces[NS_TABLE_TALK] = "Table_Talk";
+
$wgWikiDBNamespaces = array(NS_TABLE => true);
+
</php>
+

Latest revision as of 21:19, 7 February 2022

Warning and no table creation[edit]

Moved to WikiDB/Bugs#Warning and no table creation.