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 d0283df..89e0301 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 {