Fixed file path problem

This commit is contained in:
Steve Kamerman 2013-05-18 23:40:30 -04:00
parent 60894db8dc
commit c03d5f3af3

View file

@ -91,9 +91,9 @@ class Mysql implements \PHPCI\Plugin
throw new \Exception("Import statement must contiain an 'file' key");
}
$import_file = $query['file'];
$import_file = $this->phpci->buildPath . '/' . $query['file'];
if (!is_readable($import_file)) {
throw new \Exception("Cannot open SQL import file");
throw new \Exception("Cannot open SQL import file: $import_file");
}
$database = isset($query['database'])? $query['database']: null;