]> git.mxchange.org Git - mailer.git/commitdiff
prefix now safely replaced
authorRoland Häder <roland@mxchange.org>
Mon, 2 Mar 2009 14:47:13 +0000 (14:47 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 2 Mar 2009 14:47:13 +0000 (14:47 +0000)
inc/install-inc.php

index d0283dfcfde28cee4c2686b6c06e2d9baa19b2cf..89e03018886ec9ca54889b54f44dccec34e86c09 100644 (file)
@@ -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 {