Refactor the use of Calibre path to prepare multi database. re #40
This commit is contained in:
parent
f8f20f3d5c
commit
d86d544074
4 changed files with 17 additions and 7 deletions
2
book.php
2
book.php
|
@ -72,7 +72,7 @@ class Book extends Base {
|
|||
$this->title = $line->title;
|
||||
$this->timestamp = strtotime ($line->timestamp);
|
||||
$this->pubdate = strtotime ($line->pubdate);
|
||||
$this->path = $config['calibre_directory'] . $line->path;
|
||||
$this->path = Base::getDbDirectory () . $line->path;
|
||||
$this->relativePath = $line->path;
|
||||
$this->seriesIndex = $line->series_index;
|
||||
$this->comment = $line->comment;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue