Add basic application in order to perform the tasks
This commit is contained in:
parent
46d993d168
commit
8d5109d7de
9 changed files with 295 additions and 5 deletions
|
@ -30,7 +30,7 @@ class CalibreDbLoader
|
|||
*/
|
||||
public function __construct($inDbFileName, $inCreate = false)
|
||||
{
|
||||
if ($inCreate || !file_exists($inDbFileName)) {
|
||||
if ($inCreate) {
|
||||
$this->CreateDatabase($inDbFileName);
|
||||
}
|
||||
else {
|
||||
|
@ -51,7 +51,7 @@ class CalibreDbLoader
|
|||
// Read the sql file
|
||||
$content = file_get_contents(CalibreCreateDbSql);
|
||||
if ($content === false) {
|
||||
$error = sprintf('Cannot read sql file: %s', $inDbFileName);
|
||||
$error = sprintf('Cannot read sql file: %s', CalibreCreateDbSql);
|
||||
throw new Exception($error);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue