mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-10 14:44:04 +01:00
Miglioramento percorsi #83
This commit is contained in:
parent
7ee53829eb
commit
3cdd4a11ac
@ -888,7 +888,7 @@ function isMobile()
|
|||||||
function getURLPath()
|
function getURLPath()
|
||||||
{
|
{
|
||||||
$path = $_SERVER['SCRIPT_FILENAME'];
|
$path = $_SERVER['SCRIPT_FILENAME'];
|
||||||
$prefix = $_SERVER['DOCUMENT_ROOT'];
|
$prefix = rtrim($_SERVER['DOCUMENT_ROOT'], '/\\');
|
||||||
|
|
||||||
if (substr($path, 0, strlen($prefix)) == $prefix) {
|
if (substr($path, 0, strlen($prefix)) == $prefix) {
|
||||||
$path = substr($path, strlen($prefix));
|
$path = substr($path, strlen($prefix));
|
||||||
|
Loading…
Reference in New Issue
Block a user