| @@ 56-63 (lines=8) @@ | ||
| 53 | return self::isMultipleDatabaseEnabled () && is_null (GetUrlParam (DB)); |
|
| 54 | } |
|
| 55 | ||
| 56 | public static function getDbList () { |
|
| 57 | global $config; |
|
| 58 | if (self::isMultipleDatabaseEnabled ()) { |
|
| 59 | return $config['calibre_directory']; |
|
| 60 | } else { |
|
| 61 | return array ("" => $config['calibre_directory']); |
|
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | public static function getDbNameList () { |
|
| 66 | global $config; |
|
| @@ 65-72 (lines=8) @@ | ||
| 62 | } |
|
| 63 | } |
|
| 64 | ||
| 65 | public static function getDbNameList () { |
|
| 66 | global $config; |
|
| 67 | if (self::isMultipleDatabaseEnabled ()) { |
|
| 68 | return array_keys ($config['calibre_directory']); |
|
| 69 | } else { |
|
| 70 | return array (""); |
|
| 71 | } |
|
| 72 | } |
|
| 73 | ||
| 74 | public static function getDbName ($database = NULL) { |
|
| 75 | global $config; |
|