case "finalize": // Write captured data to files
if ((REQUEST_ISSET_POST(('finalize'))) && (!isInstalled())) {
- // You have submitted data then we have to reset the fatal messages
+ // You have submitted data then we have to reset the SQLs
INIT_SQLS();
// Connect to MySQL server
// Read the file
$fileContent = READ_FILE($FQFN, true);
+ // Replace the {!prefix!} with actual one
+ while (strpos($fileContent, "{!prefix!}") !== false) {
+ $fileContent = str_replace("{!prefix!}", $mysql['prefix'], $fileContent);
+ } // END - while
+
// And split it up against ;\n ...
SET_SQLS(merge_array(GET_SQLS(), explode(";\n", $fileContent)));
} else {