From: Nicolas Boisselier Date: Fri, 22 Apr 2016 10:57:29 +0000 (+0100) Subject: wp X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b586727d8921ed21d0c1453ac1b9a583bcfa4be9;p=nb.git wp --- diff --git a/etc/dbs/wp.php b/etc/dbs/wp.php index 726c6a4d..2682abd5 100644 --- a/etc/dbs/wp.php +++ b/etc/dbs/wp.php @@ -14,4 +14,8 @@ $CONF['wp'] = array ( ), ), ); +if (!empty($GLOBALS['wpdb'])) { + $CONF['wp']['type'] = 'sqlite'; + $CONF['wp']['pdo'] = 'sqlite:'.DB_DIR.'/'.DB_FILE; +} ?>