Skip to content

Commit d35ffdd

Browse files
author
mutec
committed
fix cached compile check
1 parent 327d493 commit d35ffdd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/lib/system/content/type/TemplateContentType.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ public function validate($data) {
5353
* @see \cms\system\content\type\IContentType::getOutput()
5454
*/
5555
public function getOutput(Content $content) {
56-
if (empty($content->compiled[WCF::getLanguage()->languageCode])) {
56+
$compiled = $content->compiled;
57+
if (empty($compiled[WCF::getLanguage()->languageCode])) {
5758
$compiled = WCF::getTPL()->getCompiler()->compileString('de.codequake.cms.content.type.template' . $content->contentID, $content->text);
5859

5960
$contentData = $content->contentData;

0 commit comments

Comments
 (0)