summaryrefslogtreecommitdiff
path: root/views/partials
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2014-09-07 11:58:42 -0700
committerAaron Parecki <aaron@parecki.com>2014-09-07 11:58:42 -0700
commit37c516216ef0321d63bdc1ba2683fb9b3e6b6e45 (patch)
treecea3a58e9d529c02dad7040aedbfe305df2b6b44 /views/partials
parentcf8ecf1fc9942dc00f0a5a11b313f8babbc9c3cd (diff)
get bookmarklet base url from config
Diffstat (limited to 'views/partials')
-rw-r--r--views/partials/bookmark-bookmarklet.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/partials/bookmark-bookmarklet.php b/views/partials/bookmark-bookmarklet.php
index a4b095d..ae6ce93 100644
--- a/views/partials/bookmark-bookmarklet.php
+++ b/views/partials/bookmark-bookmarklet.php
@@ -1,5 +1,5 @@
javascript:(function(){
var t;try{t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));}catch(e){t="";};
- window.location="http://quill.dev/bookmark?url="+encodeURIComponent(window.location.href)+"&content="+encodeURIComponent('"'+t+'"')+"&name="+encodeURIComponent(document.title)+"&token=<?= $this->token ?>";
+ window.location="<?= Config::$base_url ?>bookmark?url="+encodeURIComponent(window.location.href)+"&content="+encodeURIComponent('"'+t+'"')+"&name="+encodeURIComponent(document.title)+"&token=<?= $this->token ?>";
})();