$str = trim($str);
// Is the string empty?
- if (empty($str)) $str = '---';
+ if (empty($str)) {
+ $str = '---';
+ } // END - if
// Return string
return $str;
// Base directory
$basePath = sprintf("%stemplates/%s/html/", getPath(), getLanguage());
- $extraPath = detectExtraTemplatePath($template);;
+ $extraPath = detectExtraTemplatePath($template);
// Generate FQFN
$FQFN = $basePath . $extraPath . $template . '.tpl';
$code = str_replace('{--', '{%message,', str_replace('--}', '%}', $code));
// Compile QUOT and other non-HTML codes
- foreach ($secChars['to'] as $k => $to) {
- // Do the reversed thing as in inc/libs/security_functions.php
- $code = str_replace($to, $secChars['from'][$k], $code);
- } // END - foreach
+ $code = str_replace($secChars['to'], $secChars['from'], $code);
// Find $content[bla][blub] entries
// @TODO Do only use $content and deprecate $GLOBALS and $DATA in templates
$count_lines = count($codeE);
$r = 'Line | Code:<br />';
- foreach($codeE as $line => $c) {
+ foreach ($codeE as $line => $c) {
$r .= '<div class="line"><span class="linenum">';
if ($count_lines == 1) {
$r .= 1;