Browse Source

fix an error in two elements, that recirsivly call the dispatcher

master
Dominik Schmidt-Philipp 1 day ago
parent
commit
369bf7ee08
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      app/modules/elementdispatcher.php
  2. +1
    -1
      app/modules/filesinfolders.php

+ 3
- 3
app/modules/elementdispatcher.php View File

} }
if (count($request) >= 2) { if (count($request) >= 2) {
$body=str_replace([$request[0],$request[1]],["{|","|}"],$body); $body=str_replace([$request[0],$request[1]],["{|","|}"],$body);
$body=$this->content_element_dispatcher($body);
$body=$this->content_element($body);
} }
$hash=md5($body); $hash=md5($body);
$add=sprintf("<div id=\"%s\" class=\"content_elment_box_body\">\n%s\n</div>", $add=sprintf("<div id=\"%s\" class=\"content_elment_box_body\">\n%s\n</div>",
$counter++; $counter++;
if (count($request) >= 4) { if (count($request) >= 4) {
$part=str_replace([$request[2],$request[3]],["{|","|}"],$part); $part=str_replace([$request[2],$request[3]],["{|","|}"],$part);
$part=$this->content_element_dispatcher($part);
$part=$this->content_element($part);
} }
$new .= sprintf("<div>\n%s\n</div>", $new .= sprintf("<div>\n%s\n</div>",
$md->text($part) $md->text($part)


break; break;
default: default:
$new=self::warn("Content Module \"".$request[0]."\" unknown");
$new=FilesInFolders::warn("Content Module \"".$request[0]."\" unknown");
break; break;
} }

+ 1
- 1
app/modules/filesinfolders.php View File

return $string; return $string;
} }
function warn($message) {
static function warn($message) {
return sprintf("<div class=\"warning\">%s</div>",$message); return sprintf("<div class=\"warning\">%s</div>",$message);
} }
} }

Loading…
Cancel
Save