aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-04 18:07:41 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-04 18:07:41 +0200
commit3ba5f81b7bc99d7ff954aa5b76aca93c9e157e67 (patch)
tree015223721b1c60945df81a4fbf5b1d2e14fe63ee /inc/poche
parent07b9821e249bf7362d618a21c004a62ec79b5bb4 (diff)
downloadwallabag-3ba5f81b7bc99d7ff954aa5b76aca93c9e157e67.tar.gz
wallabag-3ba5f81b7bc99d7ff954aa5b76aca93c9e157e67.tar.zst
wallabag-3ba5f81b7bc99d7ff954aa5b76aca93c9e157e67.zip
twig implementation
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');