diff options
author | brantje <brantje@gmail.com> | 2016-10-01 18:21:24 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-01 18:21:24 +0300 |
commit | 64113510686357efe5bb1a88e15e121a02912ed0 (patch) | |
tree | 1dba67d503b22ca099de989b2ece4dc9e1eb69bf /controller/pagecontroller.php | |
parent | c4da0742dfd579cd7cc6a2713e7038426f9aa940 (diff) |
Add bookmarklet
Diffstat (limited to 'controller/pagecontroller.php')
-rw-r--r-- | controller/pagecontroller.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/controller/pagecontroller.php b/controller/pagecontroller.php index fd0c401d..1520cd02 100644 --- a/controller/pagecontroller.php +++ b/controller/pagecontroller.php @@ -42,5 +42,13 @@ class PageController extends Controller { } + /** + * @NoAdminRequired + * @NoCSRFRequired + */ + public function bookmarklet($url='',$title='') { + $params = array('url' => $url, 'label' => $title); + return new TemplateResponse('passman', 'bookmarklet', $params); + } }
\ No newline at end of file |