Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-10-01 18:21:24 +0300
committerbrantje <brantje@gmail.com>2016-10-01 18:21:24 +0300
commit64113510686357efe5bb1a88e15e121a02912ed0 (patch)
tree1dba67d503b22ca099de989b2ece4dc9e1eb69bf /controller/pagecontroller.php
parentc4da0742dfd579cd7cc6a2713e7038426f9aa940 (diff)
Add bookmarklet
Diffstat (limited to 'controller/pagecontroller.php')
-rw-r--r--controller/pagecontroller.php8
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