From 8fac662f4b0f9200b7d383d7e244ed49632d2efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 14 Dec 2013 10:32:28 +0100 Subject: [PATCH] Try to use the method created ... re #127 --- base.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base.php b/base.php index 39f1c54..8001dbd 100644 --- a/base.php +++ b/base.php @@ -903,7 +903,7 @@ abstract class Base public static function getDbList () { global $config; - if (is_array ($config['calibre_directory'])) { + if (self::isMultipleDatabaseEnabled ()) { return $config['calibre_directory']; } else { return array ("" => $config['calibre_directory']); @@ -912,7 +912,7 @@ abstract class Base public static function getDbName ($database = NULL) { global $config; - if (is_array ($config['calibre_directory'])) { + if (self::isMultipleDatabaseEnabled ()) { if (is_null ($database)) $database = GetUrlParam (DB, 0); $array = array_keys ($config['calibre_directory']); return $array[$database]; @@ -922,7 +922,7 @@ abstract class Base public static function getDbDirectory ($database = NULL) { global $config; - if (is_array ($config['calibre_directory'])) { + if (self::isMultipleDatabaseEnabled ()) { if (is_null ($database)) $database = GetUrlParam (DB, 0); $array = array_values ($config['calibre_directory']); return $array[$database];