Skip to content
Snippets Groups Projects
Commit 093ec9e4 authored by andi's avatar andi
Browse files

another fix for #292

darcs-hash:20050429190416-9977f-90a87eb28eebed76b3032a9b32584b0f96ff047f.gz
parent b2d7d3f2
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,10 @@ function getBaseURL($abs=false){
if($conf['basedir']){
$dir = $conf['basedir'];
}elseif($_SERVER['DOCUMENT_ROOT'] && $_SERVER['SCRIPT_FILENAME']){
$dir = preg_replace ('/^'.preg_quote($_SERVER['DOCUMENT_ROOT'],'/').'/','',
$_SERVER['SCRIPT_FILENAME']);
$dir = dirname('/'.$dir).'/';
}else{
$dir = dirname($_SERVER['PHP_SELF']).'/';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment