}
}
-// Imports given SQL dump from given (relative) path
-function importSqlDump ($path, $dumpName) {
+// Imports given SQL dump from given (relative) path and adds them to $sqlPool
+function importSqlDump ($path, $dumpName, $sqlPool) {
// Construct FQFN
$FQFN = getPath() . $path . '/' . $dumpName . '.sql';
$fileContent = readSqlDump($FQFN);
// Merge it with existing SQL statements
- mergeSqls(explode(";\n", $fileContent), 'install');
+ mergeSqls(explode(";\n", $fileContent), $sqlPool);
}
// [EOF]