diff options
author | Thomas Citharel <thomas.citharet@gmail.com> | 2013-09-08 21:07:59 +0200 |
---|---|---|
committer | Thomas Citharel <thomas.citharet@gmail.com> | 2013-09-08 21:07:59 +0200 |
commit | 693b3f86776ae236d69ac6ed085b5e46b9054642 (patch) | |
tree | 52beeeaccc06b8d9ae52ca99b507f2e29eb47fe8 /inc/poche/Poche.class.php | |
parent | 3eb049036e601c1978cf5f7f0d5be8c577933b72 (diff) | |
download | wallabag-693b3f86776ae236d69ac6ed085b5e46b9054642.tar.gz wallabag-693b3f86776ae236d69ac6ed085b5e46b9054642.tar.zst wallabag-693b3f86776ae236d69ac6ed085b5e46b9054642.zip |
Implemented Add Button
Added a button to add an URL when directly into Poche. If JS isn't
enabled, nothing happens.
Diffstat (limited to 'inc/poche/Poche.class.php')
-rw-r--r-- | inc/poche/Poche.class.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/poche/Poche.class.php b/inc/poche/Poche.class.php index a8f64151..a7479ad8 100644 --- a/inc/poche/Poche.class.php +++ b/inc/poche/Poche.class.php | |||
@@ -558,4 +558,9 @@ class Poche | |||
558 | } | 558 | } |
559 | return $version; | 559 | return $version; |
560 | } | 560 | } |
561 | |||
562 | function convertURLToBase64($plainurl){ | ||
563 | $convertedURL = base64_encode($plainurl); | ||
564 | $this->action('add', new Url($convertedURL)) | ||
565 | } | ||
561 | } \ No newline at end of file | 566 | } \ No newline at end of file |