summaryrefslogtreecommitdiff
path: root/app/Core
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core')
-rw-r--r--app/Core/Helper.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Core/Helper.php b/app/Core/Helper.php
index 740ff7c2..0650c293 100644
--- a/app/Core/Helper.php
+++ b/app/Core/Helper.php
@@ -515,6 +515,12 @@ class Helper
*/
public function getCurrentBaseUrl()
{
+ $application_url = $this->config->get('application_url');
+
+ if (! empty($application_url)) {
+ return $application_url;
+ }
+
$self = str_replace('\\', '/', dirname($_SERVER['PHP_SELF']));
$url = Request::isHTTPS() ? 'https://' : 'http://';