Fix for broken admin_add_sponsor template
authorRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 21:40:09 +0000 (21:40 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 19 Dec 2008 21:40:09 +0000 (21:40 +0000)
inc/databases.php
inc/functions.php

index aa5e967948060f5c776d9a4c194204390bbe4339..d531efd569bbca478814ec000985bd049cb272de 100644 (file)
@@ -115,7 +115,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // Current SVN revision
 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);
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 4d4d5a203f4fc1ef25a396f8a6b492263b18ef73..67a149808f6a231ce91a6d12910edd2bc2bf5900 100644 (file)
@@ -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
                $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 = "";
 
                // 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?
        } // 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);
 
        // Find $content[bla][blub] entries
        @preg_match_all('/\$(content|DATA)((\[([a-zA-Z0-9-_]+)\])*)/', $code, $matches);