Talk:WikiDB/Configuration settings

From TestWiki
< Talk:WikiDB
Revision as of 12:28, 20 November 2019 by 82.64.48.175 (Talk) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Warning and no table creation

Hi! The following code is bogus :

$wgWikiDBNamespaces = 100;

$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:

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);