enhanced getBaseURL()

darcs-hash:20060529154201-484ab-42382d9bd2bac83f84226209027001ca1f6deff0.gz
This commit is contained in:
Michael Klier chi@chimeric.de 2006-05-29 17:42:01 +02:00
parent 0280d25bf8
commit 488d5fa0e2
1 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,9 @@ function getBaseURL($abs=false){
//handle script in lib/exe dir
$dir = preg_replace('!lib/exe/$!','',$dir);
//handle script in lib/plugins dir
$dir = preg_replace('!lib/plugins/.*$!','',$dir);
//finish here for relative URLs
if(!$abs) return $dir;