aboutsummaryrefslogtreecommitdiff
path: root/app/class/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/config.php')
-rw-r--r--app/class/config.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/class/config.php b/app/class/config.php
index 75081f4..b3ef40c 100644
--- a/app/class/config.php
+++ b/app/class/config.php
@@ -93,6 +93,15 @@ abstract class Config
return (self::$domain === $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST']);
}
+ /**
+ * Generate full url adress where W is installed
+ * @return string url adress finished by a slash "/"
+ */
+ public static function url() : string
+ {
+ return self::$domain . (!empty(self::$basepath) ? '/' . self::$basepath : "") . '/';
+ }
+
// ________________________________________ G E T _______________________________________
public static function arttable()