aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
Diffstat (limited to 'inc/poche')
-rw-r--r--inc/poche/pocheCore.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/inc/poche/pocheCore.php b/inc/poche/pocheCore.php
index 9cbcc077..74b063e4 100644
--- a/inc/poche/pocheCore.php
+++ b/inc/poche/pocheCore.php
@@ -187,20 +187,16 @@ function display_view($view, $id = 0)
187 $entry = $store->retrieveOneById($id); 187 $entry = $store->retrieveOneById($id);
188 if ($entry != NULL) { 188 if ($entry != NULL) {
189 pocheTools::logm('view link #' . $id); 189 pocheTools::logm('view link #' . $id);
190 $tpl->assign('id', $entry['id']);
191 $tpl->assign('url', $entry['url']);
192 $tpl->assign('title', $entry['title']);
193 $content = $entry['content']; 190 $content = $entry['content'];
194 if (function_exists('tidy_parse_string')) { 191 if (function_exists('tidy_parse_string')) {
195 $tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8'); 192 $tidy = tidy_parse_string($content, array('indent'=>true, 'show-body-only' => true), 'UTF8');
196 $tidy->cleanRepair(); 193 $tidy->cleanRepair();
197 $content = $tidy->value; 194 $content = $tidy->value;
198 } 195 }
199 $tpl->assign('content', $content); 196 $tpl_vars = array(
200 $tpl->assign('is_fav', $entry['is_fav']); 197 'entry' => $entry,
201 $tpl->assign('is_read', $entry['is_read']); 198 'content' => $content,
202 $tpl->assign('load_all_js', 0); 199 );
203 $tpl->draw('view');
204 } 200 }
205 else { 201 else {
206 pocheTools::logm('error in view call : entry is NULL'); 202 pocheTools::logm('error in view call : entry is NULL');