Fixed the urls for the metaconsole images

This commit is contained in:
mdtrooper 2014-09-26 13:10:21 +02:00
parent c58721eaf8
commit 47a187a9aa
1 changed files with 6 additions and 0 deletions

View File

@ -2256,6 +2256,12 @@ function ui_get_full_url ($url = '', $no_proxy = false, $add_name_php_file = fal
}
}
if (substr($fullurl, -1, 1) === substr($url, 0, 1)) {
if (substr($fullurl, -1, 1) === '/') {
$url = substr($url, 1);
}
}
return $fullurl . $url;
}