projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5deec33
)
prefix now safely replaced
author
Roland Häder
<roland@mxchange.org>
Mon, 2 Mar 2009 14:47:13 +0000
(14:47 +0000)
committer
Roland Häder
<roland@mxchange.org>
Mon, 2 Mar 2009 14:47:13 +0000
(14:47 +0000)
inc/install-inc.php
patch
|
blob
|
history
diff --git
a/inc/install-inc.php
b/inc/install-inc.php
index d0283dfcfde28cee4c2686b6c06e2d9baa19b2cf..89e03018886ec9ca54889b54f44dccec34e86c09 100644
(file)
--- 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 {