1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-17 17:08:37 +00:00

Fixed #55 - export des données au format json

This commit is contained in:
nicosomb 2013-04-21 18:09:25 +02:00
parent 016989b79a
commit 44e77bfa24
5 changed files with 22 additions and 1 deletions

View file

@ -232,6 +232,12 @@ function display_view($view, $id = 0, $full_head = 'yes')
switch ($view)
{
case 'export':
$entries = $store->retrieveAll();
$tpl->assign('export', json_encode($entries));
$tpl->draw('export');
logm('export view');
break;
case 'config':
$tpl->assign('load_all_js', 0);
$tpl->draw('head');
@ -240,7 +246,7 @@ function display_view($view, $id = 0, $full_head = 'yes')
$tpl->draw('js');
$tpl->draw('footer');
logm('config view');
break;
break;
case 'view':
$entry = $store->retrieveOneById($id);