diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-07-09 11:46:21 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-07-09 11:46:21 +0200 |
commit | 476198849024d9dd0601b29cd34ddab38ff755a2 (patch) | |
tree | d72e64dcd5ec4213af41fff9c11671d35f84a4b4 /app/class/config.php | |
parent | 05ea1fe723534ee29ef757dead0c94d0f6321a0b (diff) | |
download | wcms-476198849024d9dd0601b29cd34ddab38ff755a2.tar.gz wcms-476198849024d9dd0601b29cd34ddab38ff755a2.zip |
fix open media tag error
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 9 |
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() |