fix bug #225: blank page on article page

This commit is contained in:
Nicolas Lœuillet 2013-09-20 14:09:26 +02:00
parent b8c67f8068
commit 3408ed48ba

View File

@ -381,17 +381,17 @@ class Poche
$tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8'); $tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8');
$tidy->cleanRepair(); $tidy->cleanRepair();
$content = $tidy->value; $content = $tidy->value;
# flattr checking
$flattr = new FlattrItem();
$flattr->checkItem($entry['url']);
$tpl_vars = array(
'entry' => $entry,
'content' => $content,
'flattr' => $flattr
);
} }
# flattr checking
$flattr = new FlattrItem();
$flattr->checkItem($entry['url']);
$tpl_vars = array(
'entry' => $entry,
'content' => $content,
'flattr' => $flattr
);
} }
else { else {
Tools::logm('error in view call : entry is null'); Tools::logm('error in view call : entry is null');