From: Roland Häder Date: Fri, 13 Mar 2009 20:03:47 +0000 (+0000) Subject: Some wrongly rewritten quotes fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8020d9e6f9ddbb84a25021944d69e164afd3bf58;p=core.git Some wrongly rewritten quotes fixed --- 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 ) );