diff options
-rw-r--r-- | README.md | 7 | ||||
-rwxr-xr-x | inc/poche/Tools.class.php | 10 |
2 files changed, 15 insertions, 2 deletions
@@ -1,4 +1,11 @@ | |||
1 | # what is wallabag ? | 1 | # what is wallabag ? |
2 | |||
3 | ## About development | ||
4 | We are working on a technical rework, using Symfony 2. You can contribute to [this version here](https://github.com/wallabag/wallabag/tree/v2). | ||
5 | |||
6 | wallabag 1.x is still maintained but we won't develop new features. | ||
7 | |||
8 | ## Description | ||
2 | wallabag is a self hostable application allowing you to not miss any content anymore. Click, save, read it when you can. It extracts content so that you can read it when you have time. | 9 | wallabag is a self hostable application allowing you to not miss any content anymore. Click, save, read it when you can. It extracts content so that you can read it when you have time. |
3 | 10 | ||
4 | More informations on our website: [wallabag.org](http://wallabag.org) | 11 | More informations on our website: [wallabag.org](http://wallabag.org) |
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index f3d1013f..15050aed 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php | |||
@@ -72,8 +72,14 @@ final class Tools | |||
72 | $serverport = ''; | 72 | $serverport = ''; |
73 | } | 73 | } |
74 | 74 | ||
75 | return 'http' . ($https ? 's' : '') . '://' | 75 | // check if BASE_URL is configured |
76 | . $host . $serverport . $scriptname; | 76 | if(BASE_URL != null && BASE_URL != '') { |
77 | $baseUrl = BASE_URL; | ||
78 | } else { | ||
79 | $baseUrl = 'http' . ($https ? 's' : '') . '://' . $host . $serverport; | ||
80 | } | ||
81 | |||
82 | return $baseUrl . $scriptname; | ||
77 | } | 83 | } |
78 | 84 | ||
79 | /** | 85 | /** |