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

@ -117,8 +117,8 @@ class Data extends Base {
$textData = "&data=" . $idData;
}
if (preg_match ('/^\//', $config['calibre_directory']) || // Linux /
preg_match ('/^\w\:/', $config['calibre_directory']) || // Windows X:
if (preg_match ('/^\//', Base::getDbDirectory ()) || // Linux /
preg_match ('/^\w\:/', Base::getDbDirectory ()) || // Windows X:
($type == "epub" && $config['cops_update_epub-metadata']))
{
if ($type != "jpg") $textData .= "&type=" . $type;