From d39bec8e089a55ebd370fbe9f4b5388aafade10d Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 9 Jul 2019 13:33:02 +0200 Subject: 1.2.3 fix unused thumbnail open media tag --- app/class/config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/class/config.php') 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 _______________________________________ -- cgit v1.2.3