Skip to content

Commit

Permalink
fix cached compile check
Browse files Browse the repository at this point in the history
  • Loading branch information
mutec committed May 21, 2016
1 parent 327d493 commit d35ffdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion files/lib/system/content/type/TemplateContentType.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ public function validate($data) {
* @see \cms\system\content\type\IContentType::getOutput()
*/
public function getOutput(Content $content) {
if (empty($content->compiled[WCF::getLanguage()->languageCode])) {
$compiled = $content->compiled;
if (empty($compiled[WCF::getLanguage()->languageCode])) {
$compiled = WCF::getTPL()->getCompiler()->compileString('de.codequake.cms.content.type.template' . $content->contentID, $content->text);

$contentData = $content->contentData;
Expand Down

0 comments on commit d35ffdd

Please sign in to comment.