}
}
+// Imports given SQL dump from given (relative) path
+function importSqlDump ($path, $dumpName) {
+ // Construct FQFN
+ $FQFN = getPath() . $path . '/' . $dumpName . '.sql';
+
+ // Is the file readable?
+ if (!isFileReadable($FQFN)) {
+ // Not found, which is bad
+ reportBug(__FILE__, __LINE__, sprintf("SQL dump %s/%s.sql is not readable.", $path, $dumpName));
+ } // END - if
+
+ // Then read it
+ $fileContent = readSqlDump($FQFN);
+
+ // Merge it with existing SQL statements
+ mergeSqls(explode(";\n", $fileContent), 'install');
+}
+
// [EOF]
?>