We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 03db8f96 authored by P. J. McDermott's avatar P. J. McDermott

Clean up code in gnukebox/utils/get_absolute_url.php.

parent a1f7334a
......@@ -21,10 +21,9 @@
function getAbsoluteURL() {
$scriptName = $_SERVER['SCRIPT_NAME'];
$path = explode("/", $scriptName);
$server = $_SERVER['HTTP_HOST'];
$string = (implode("/", $path).'/');
return "http://".$server.$string;
$path = explode('/', $scriptName);
$server = $_SERVER['HTTP_HOST'];
$string = (implode('/', $path) . '/');
return 'http://' . $server . $string;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment