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
4
data.php
4
data.php
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue