From 8020d9e6f9ddbb84a25021944d69e164afd3bf58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 13 Mar 2009 20:03:47 +0000 Subject: [PATCH] Some wrongly rewritten quotes fixed --- inc/classes/main/helper/web/forms/class_WebFormHelper.php | 6 +++--- inc/classes/main/template/class_BaseTemplateEngine.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inc/classes/main/helper/web/forms/class_WebFormHelper.php b/inc/classes/main/helper/web/forms/class_WebFormHelper.php index b816c337..e20545f0 100644 --- a/inc/classes/main/helper/web/forms/class_WebFormHelper.php +++ b/inc/classes/main/helper/web/forms/class_WebFormHelper.php @@ -114,7 +114,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { // Check wether we shall open or close the form if (($this->formOpened === false) && ($this->formEnabled === true)) { // Add HTML code - $formContent = sprintf("
getConfigInstance()->readConfig('base_url'), $this->getConfigInstance()->readConfig('form_action'), @@ -123,7 +123,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { ); // Add form id as well - $formContent .= sprintf(" id=\"%s_form\'', + $formContent .= sprintf(" id=\"%s_form\"", $formId ); @@ -296,7 +296,7 @@ class WebFormHelper extends BaseWebHelper implements HelpableTemplate { } // END - if // Set wether the check box is checked... - $checked = " checked=\"checked\''; + $checked = " checked=\"checked\""; if ($fieldChecked === false) $checked = " "; // Generate the content diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index 4b121a4f..7052d5f8 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -779,7 +779,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { } // Do we have some quotes left and right side? Then it is free text - if ((substr($varMatches[2][$key], 0, 1) == "\'') && (substr($varMatches[2][$key], -1, 1) == "\'')) { + if ((substr($varMatches[2][$key], 0, 1) == "\"") && (substr($varMatches[2][$key], -1, 1) == "\"")) { // Free string detected! Which we can assign directly $this->assignVariable($var, $varMatches[3][$key]); } elseif (!empty($varMatches[2][$key])) { @@ -998,7 +998,7 @@ class BaseTemplateEngine extends BaseFrameworkSystem { $eval = str_replace( "<%php", "\";", str_replace( - "%>", "\n\$result .= \'', $eval + "%>", "\n\$result .= \"", $eval ) ); -- 2.39.5