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