X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/a155e54c13f86994f4280fb18eba021f3cc7c9fd..420be1d8b35ee5cd319662619365e091ef17e9f0:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index e72359e..53733ca 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1517,3 +1517,8 @@ function jirafeau_add_ending_slash($path) { return $path . ((substr($path, -1) == '/') ? '' : '/'); } + +function jirafeau_default_web_root() +{ + return $_SERVER['HTTP_HOST'] . str_replace(basename(__FILE__), '', $_SERVER['REQUEST_URI']); +}