diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-07-31 19:37:14 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-07-31 19:37:14 +0200 |
commit | 538cdfa8839ca9a3d0bfe9b1a89af8e125aa3490 (patch) | |
tree | 2dde1b806eff88eceb30fef9eed589508611267e /index.php | |
parent | 70b5d24f72d2c3d410b55665162c0ebc78bc0339 (diff) | |
download | wallabag-538cdfa8839ca9a3d0bfe9b1a89af8e125aa3490.tar.gz wallabag-538cdfa8839ca9a3d0bfe9b1a89af8e125aa3490.tar.zst wallabag-538cdfa8839ca9a3d0bfe9b1a89af8e125aa3490.zip |
fix #70: if demo mode, fields are filled
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -54,7 +54,7 @@ elseif (isset($_GET['config'])) { | |||
54 | if (isset($_POST['password']) && isset($_POST['password_repeat'])) { | 54 | if (isset($_POST['password']) && isset($_POST['password_repeat'])) { |
55 | if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") { | 55 | if ($_POST['password'] == $_POST['password_repeat'] && $_POST['password'] != "") { |
56 | logm('password updated'); | 56 | logm('password updated'); |
57 | if (!DEMO) { | 57 | if (!MODE_DEMO) { |
58 | $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login'])); | 58 | $store->updatePassword(encode_string($_POST['password'] . $_SESSION['login'])); |
59 | $msg->add('s', 'your password has been updated'); | 59 | $msg->add('s', 'your password has been updated'); |
60 | } | 60 | } |
@@ -79,6 +79,7 @@ $tpl->assign('isLogged', Session::isLogged()); | |||
79 | $tpl->assign('referer', $ref); | 79 | $tpl->assign('referer', $ref); |
80 | $tpl->assign('view', $view); | 80 | $tpl->assign('view', $view); |
81 | $tpl->assign('poche_url', myTool::getUrl()); | 81 | $tpl->assign('poche_url', myTool::getUrl()); |
82 | $tpl->assign('demo', MODE_DEMO); | ||
82 | $tpl->assign('title', 'poche, a read it later open source system'); | 83 | $tpl->assign('title', 'poche, a read it later open source system'); |
83 | 84 | ||
84 | if (Session::isLogged()) { | 85 | if (Session::isLogged()) { |
@@ -86,5 +87,6 @@ if (Session::isLogged()) { | |||
86 | display_view($view, $id, $full_head); | 87 | display_view($view, $id, $full_head); |
87 | } | 88 | } |
88 | else { | 89 | else { |
90 | |||
89 | $tpl->draw('login'); | 91 | $tpl->draw('login'); |
90 | } | 92 | } |