1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 04:23:01 +00:00

Bugfix: Don't replace {body} twice in the page renderer

This commit is contained in:
Starbeamrainbowlabs 2015-09-20 15:58:51 +01:00
parent daa8ac2a3b
commit 516aebeaac
2 changed files with 1 additions and 2 deletions

View file

@ -639,7 +639,7 @@ class page_renderer
} }
$result = self::$html_template; $result = self::$html_template;
$result = str_replace("{body}", $parts["{body}"], $result); // $result = str_replace("{body}", $parts["{body}"], $result);
$result = str_replace(array_keys($parts), array_values($parts), $result); $result = str_replace(array_keys($parts), array_values($parts), $result);

View file

@ -418,7 +418,6 @@ class page_renderer
} }
$result = self::$html_template; $result = self::$html_template;
$result = str_replace("{body}", $parts["{body}"], $result);
$result = str_replace(array_keys($parts), array_values($parts), $result); $result = str_replace(array_keys($parts), array_values($parts), $result);