Refactor the use of Calibre path to prepare multi database. re #40

This commit is contained in:
Sébastien Lucas 2013-04-03 15:00:09 +02:00
parent f8f20f3d5c
commit d86d544074
4 changed files with 17 additions and 7 deletions

View file

@ -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;