summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/config.template.php1
-rw-r--r--views/partials/bookmark-bookmarklet.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/config.template.php b/lib/config.template.php
index f8a1ab2..df80efa 100644
--- a/lib/config.template.php
+++ b/lib/config.template.php
@@ -1,6 +1,7 @@
<?php
class Config {
public static $hostname = 'quill.dev';
+ public static $base_url = 'http://quill.dev/';
public static $gaid = '';
public static $dbHost = '127.0.0.1';
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 ?>";
})();