diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-10 14:41:58 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-09-10 14:41:58 +0200 |
commit | ce4a1dcc193d3124fc51c4942137621d3d806a19 (patch) | |
tree | 437baacae734dd62426329fa4fa830beb78c7aea /index.php | |
parent | d5ce28df67fcddfb957ce28424f3e5751f433695 (diff) | |
download | wallabag-ce4a1dcc193d3124fc51c4942137621d3d806a19.tar.gz wallabag-ce4a1dcc193d3124fc51c4942137621d3d806a19.tar.zst wallabag-ce4a1dcc193d3124fc51c4942137621d3d806a19.zip |
changes to add url directly from poche
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -43,9 +43,10 @@ elseif (isset($_GET['import'])) { | |||
43 | elseif (isset($_GET['export'])) { | 43 | elseif (isset($_GET['export'])) { |
44 | $poche->export(); | 44 | $poche->export(); |
45 | } | 45 | } |
46 | 46 | elseif (isset($_GET['plainurl']) && !empty($_GET['plainurl'])) { | |
47 | if (isset($_GET['plainurl'])){ | 47 | $plain_url = new Url(base64_encode($_GET['plainurl'])); |
48 | $poche->convertURLToBase64($_GET['plainurl']);} | 48 | $poche->action('add', $plain_url); |
49 | } | ||
49 | 50 | ||
50 | # vars to send to templates | 51 | # vars to send to templates |
51 | $tpl_vars = array( | 52 | $tpl_vars = array( |