Factorize a little more the DB handling. re #127
This commit is contained in:
parent
3df11c6ef7
commit
cd626b25ef
3 changed files with 24 additions and 13 deletions
2
book.php
2
book.php
|
@ -642,7 +642,7 @@ function getJson ($complete = false) {
|
|||
// Special case when no databases were chosen, we search on all databases
|
||||
if (Base::noDatabaseSelected ()) {
|
||||
$i = 0;
|
||||
foreach (array_keys ($config['calibre_directory']) as $key) {
|
||||
foreach (Base::getDbNameList () as $key) {
|
||||
Base::clearDb ();
|
||||
array_push ($out, array ("title" => $key,
|
||||
"class" => "tt-header",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue