mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
Refactor more URL related functions
This commit is contained in:
parent
a8094fe766
commit
08560f84be
5 changed files with 9 additions and 15 deletions
|
|
@ -63,8 +63,7 @@ class image_link extends EditorHandler
|
|||
if(substr($src, 0,2)=='./') $src = Context::getRequestUri().substr($src, 2);
|
||||
else if(substr($src , 0, 1)=='/')
|
||||
{
|
||||
if($_SERVER['HTTPS']=='on') $http_src = 'https://';
|
||||
else $http_src = 'http://';
|
||||
$http_src = RX_SSL ? 'https://' : 'http://';
|
||||
$src = $http_src.$_SERVER['HTTP_HOST'].$src;
|
||||
}
|
||||
else if(!strpos($temp_src[0],':') && $src) $src = Context::getRequestUri().$src;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue