mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
bug fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4906 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ab71c6d468
commit
beabe56505
6 changed files with 13 additions and 4 deletions
|
|
@ -1224,5 +1224,11 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
function getFixUrl($url){
|
||||
if(eregi("(http|https):\/\/",$url)) return $url;
|
||||
if(ereg("^/",$url)) return $url;
|
||||
return dirname($_SERVER['PHP_SELF']) . "/" . $url;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue