]> git.mxchange.org Git - mailer.git/blobdiff - inc/install-inc.php
Typo and SVN revision fixed
[mailer.git] / inc / install-inc.php
index d0283dfcfde28cee4c2686b6c06e2d9baa19b2cf..b1aeb83b02054f9accd16ad8604953a17712c9ca 100644 (file)
@@ -268,7 +268,7 @@ if ((!isInstalled()) || (!isAdminRegistered()))
 
        case "finalize": // Write captured data to files
                if ((REQUEST_ISSET_POST(('finalize'))) && (!isInstalled())) {
 
        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
                        INIT_SQLS();
 
                        // Connect to MySQL server
@@ -286,6 +286,11 @@ if ((!isInstalled()) || (!isAdminRegistered()))
                                                                // Read the file
                                                                $fileContent = READ_FILE($FQFN, true);
 
                                                                // 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 {
                                                                // And split it up against ;\n ...
                                                                SET_SQLS(merge_array(GET_SQLS(), explode(";\n", $fileContent)));
                                                        } else {