Fix for broken admin_add_sponsor template
[mailer.git] / inc / functions.php
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
-               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);