Added missing parameter which allows to add the SQL statements not just to 'install...
[mailer.git] / inc / sql-functions.php
index 4f57bf88ca1a5a919899947f4d3fcbaf78c1f11e..e61f3938041f1fbd57f12cc4327744f1167fe54e 100644 (file)
@@ -260,8 +260,8 @@ function initSqlLink () {
        }
 }
 
-// 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';
 
@@ -275,7 +275,7 @@ function importSqlDump ($path, $dumpName) {
        $fileContent = readSqlDump($FQFN);
 
        // Merge it with existing SQL statements
-       mergeSqls(explode(";\n", $fileContent), 'install');
+       mergeSqls(explode(";\n", $fileContent), $sqlPool);
 }
 
 // [EOF]