]> git.mxchange.org Git - core.git/commitdiff
Some wrongly rewritten quotes fixed
authorRoland Häder <roland@mxchange.org>
Fri, 13 Mar 2009 20:03:47 +0000 (20:03 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 13 Mar 2009 20:03:47 +0000 (20:03 +0000)
inc/classes/main/helper/web/forms/class_WebFormHelper.php
inc/classes/main/template/class_BaseTemplateEngine.php

index b816c337ed2c9f57db4537ca59093fef2196e180..e20545f0d254246a2e90694eae6073aaed0be568 100644 (file)
@@ -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("<form name=\"%s\" class=\"forms\" action=\"%s/%s\" method=\"%s\" target=\"%s\'',
+                       $formContent = sprintf("<form name=\"%s\" class=\"forms\" action=\"%s/%s\" method=\"%s\" target=\"%s\"",
                                $formName,
                                $this->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
index 4b121a4febe93ae70082126205ccab4ecd254001..7052d5f8f2478f72dea5e4a23f1f5fed11e3888f 100644 (file)
@@ -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
                                )
                        );