aboutsummaryrefslogtreecommitdiff
path: root/app/class/config.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-07-09 13:33:02 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-07-09 13:33:02 +0200
commitd39bec8e089a55ebd370fbe9f4b5388aafade10d (patch)
tree445a9c7b21eae9a174ba1fa2ea7db976af2a0dcf /app/class/config.php
parent476198849024d9dd0601b29cd34ddab38ff755a2 (diff)
downloadwcms-d39bec8e089a55ebd370fbe9f4b5388aafade10d.tar.gz
wcms-d39bec8e089a55ebd370fbe9f4b5388aafade10d.zip
1.2.3 fix unused thumbnail open media tag
Diffstat (limited to 'app/class/config.php')
-rw-r--r--app/class/config.php4
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 _______________________________________