From 1c4063cc48fd05a4bd7808e56ea303003f61d2cc Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 12 Oct 2016 11:27:17 +0200 Subject: [PATCH] fix buix with dropbox --- etc/dbq.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/dbq.php b/etc/dbq.php index 12041bc8..9aa48d27 100644 --- a/etc/dbq.php +++ b/etc/dbq.php @@ -89,12 +89,13 @@ foreach ($DBQ as $id => $db) { or empty($db['type'] ) or $db['type']!='sqlite' or empty($db['host'] ) - #or !is_readable($fname=basename($db['host'],'.db')) - #or !is_readable($fname) or !is_readable($db['host']) + or !strpos($db['host'],'.db') ) continue; + $fname = basename($db['host'],'.db'); $fname = preg_replace('/\..*$/','',basename($db['host'])); + $DBQ['all']['types']['sql_pre'][] = "ATTACH DATABASE '".$db['host']."' as ".$fname.""; conf_merge($DBQ[$fname],$DBQ['all']); -- 2.47.3