From: Roland Häder Date: Fri, 19 Dec 2008 21:40:09 +0000 (+0000) Subject: Fix for broken admin_add_sponsor template X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=commitdiff_plain;h=4bbd0f6ac8e11a702e000ffdfbd868a4e8a06ba3 Fix for broken admin_add_sponsor template --- diff --git a/inc/databases.php b/inc/databases.php index aa5e967948..d531efd569 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -115,7 +115,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // Current SVN revision -define('CURR_SVN_REVISION', "683"); +define('CURR_SVN_REVISION', "684"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index 4d4d5a203f..67a149808f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -342,7 +342,7 @@ function LOAD_TEMPLATE($template, $return=false, $content=array()) { $tmpl_file = implode("", file($file)); // Replace ' to our own chars to preventing them being quoted - while (strpos($tmpl_file, "\'") !== false) { $tmpl_file = str_replace("\'", '{QUOT}', $tmpl_file); } + while (strpos($tmpl_file, "'") !== false) { $tmpl_file = str_replace("'", '{QUOT}', $tmpl_file); } // Do we have to compile the code? $ret = ""; @@ -1000,7 +1000,7 @@ function COMPILE_CODE($code, $simple = false, $constants = true, $full = true) { } // END - foreach // But shall I keep simple quotes for later use? - if ($simple) $code = str_replace("\'", '{QUOT}', $code); + if ($simple) $code = str_replace("'", '{QUOT}', $code); // Find $content[bla][blub] entries @preg_match_all('/\$(content|DATA)((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);