summaryrefslogtreecommitdiff
path: root/app/Helper/Url.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-20 10:48:47 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-20 10:48:47 -0400
commitcb0916d10e4a42a62f0ac8c69ecb4b7a15f398b4 (patch)
treed5344b06ee0b87224ec157f44bf513ca7e353b5b /app/Helper/Url.php
parent7056d14c95888eebe90d023524d4a63e562a9f64 (diff)
Add automatic action to send a task by email
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();
}
/**