From: Roland Häder Date: Mon, 2 Mar 2009 14:47:13 +0000 (+0000) Subject: prefix now safely replaced X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=66b26d6e73dfd9e80d17d6227b50950ba0f82909 prefix now safely replaced --- diff --git a/inc/install-inc.php b/inc/install-inc.php index d0283dfcfd..89e0301888 100644 --- a/inc/install-inc.php +++ b/inc/install-inc.php @@ -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 {