// 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'),
);
// Add form id as well
- $formContent .= sprintf(" id=\"%s_form\'',
+ $formContent .= sprintf(" id=\"%s_form\"",
$formId
);
} // END - if
// Set wether the check box is checked...
- $checked = " checked=\"checked\'';
+ $checked = " checked=\"checked\"";
if ($fieldChecked === false) $checked = " ";
// Generate the content
}
// 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])) {
$eval = str_replace(
"<%php", "\";",
str_replace(
- "%>", "\n\$result .= \'', $eval
+ "%>", "\n\$result .= \"", $eval
)
);