浏览代码

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

master
Dominik Schmidt-Philipp 1 天前
父节点
当前提交
369bf7ee08
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. +3
    -3
      app/modules/elementdispatcher.php
  2. +1
    -1
      app/modules/filesinfolders.php

+ 3
- 3
app/modules/elementdispatcher.php 查看文件

@@ -255,7 +255,7 @@ class ElementDispatcher {
}
if (count($request) >= 2) {
$body=str_replace([$request[0],$request[1]],["{|","|}"],$body);
$body=$this->content_element_dispatcher($body);
$body=$this->content_element($body);
}
$hash=md5($body);
$add=sprintf("<div id=\"%s\" class=\"content_elment_box_body\">\n%s\n</div>",
@@ -458,7 +458,7 @@ class ElementDispatcher {
$counter++;
if (count($request) >= 4) {
$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>",
$md->text($part)
@@ -553,7 +553,7 @@ class ElementDispatcher {

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

+ 1
- 1
app/modules/filesinfolders.php 查看文件

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

正在加载...
取消
保存