summaryrefslogtreecommitdiff
path: root/app/Helper/Url.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Helper/Url.php')
-rw-r--r--app/Helper/Url.php8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/Helper/Url.php b/app/Helper/Url.php
index 64b2c83f..e133f195 100644
--- a/app/Helper/Url.php
+++ b/app/Helper/Url.php
@@ -88,13 +88,7 @@ class Url extends \Core\Base
*/
public function base()
{
- $application_url = $this->config->get('application_url');
-
- if (! empty($application_url)) {
- return $application_url;
- }
-
- return $this->server();
+ return $this->config->get('application_url') ?: $this->server();
}
/**