Commit bb91de31 authored by jerry wham's avatar jerry wham
Browse files

Update prepend.php

parent 6bae3585
......@@ -299,6 +299,7 @@
$root = substr($racine,strpos($racine, '://')+3,strpos($racine,basename($racine))+4);
$racine = substr($root,strpos($root,'/'));
}
$racine = str_replace(DS,'/',$racine);
return $racine;
}
......@@ -310,7 +311,7 @@
$basename = basename($_SERVER['DOCUMENT_ROOT']);
$root = substr(MS5E_ROOT,strpos(MS5E_ROOT,$basename)+strlen($basename) );
$path = str_replace(MS5E_ROOT,'',$path);
return $protocol.$servername.$serverport.$root.$path;
return str_replace(DS,'/',$protocol.$servername.$serverport.$root.$path);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment