X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/9a51f6fc76ce0b60829cc31ccab9643c73b26440..420be1d8b35ee5cd319662619365e091ef17e9f0:/lib/functions.php?ds=sidebyside 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']); +}