View Single Post
Old 07-09-2012, 04:16 AM   #69
olganazo
Junior Member
olganazo began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2012
Device: kobo
I did some debug this morning and I found the path was wrong althoug the connexion to db did not fail in some cases in

public static function getDb () {
global $config;
if (is_null (self::$db)) {
try {
self::$db = new PDO('sqlite:'. $config['calibre_directory'] .'metadata.db');
// echo 'sqlite:'. $config['calibre_directory'] .'metadata.db';
} catch (Exception $e) {
echo $e;
die($e);
}
}
return self::$db;
}

Works fine now !
Thanks a lot for your work !
olganazo is offline   Reply With Quote