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