X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Finstall-inc.php;h=b1aeb83b02054f9accd16ad8604953a17712c9ca;hp=d0283dfcfde28cee4c2686b6c06e2d9baa19b2cf;hb=67a9828dd27cb5119292e5ac99042b3fcedb0d6b;hpb=5deec33be1baf2135eefc2bbb0d1b63c6cbd2f9a diff --git a/inc/install-inc.php b/inc/install-inc.php index d0283dfcfd..b1aeb83b02 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -268,7 +268,7 @@ if ((!isInstalled()) || (!isAdminRegistered())) 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 @@ -286,6 +286,11 @@ if ((!isInstalled()) || (!isAdminRegistered())) // 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 {