diff options
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/config.php b/app/class/config.php index b3ef40c..dbc6d80 100644 --- a/app/class/config.php +++ b/app/class/config.php @@ -97,9 +97,9 @@ abstract class Config * Generate full url adress where W is installed * @return string url adress finished by a slash "/" */ - public static function url() : string + public static function url($endslash = true) : string { - return self::$domain . (!empty(self::$basepath) ? '/' . self::$basepath : "") . '/'; + return self::$domain . (!empty(self::$basepath) ? '/' . self::$basepath : "") . ($endslash ? '/' : ''); } // ________________________________________ G E T _______________________________________ |