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

Commit 62d02845 authored by Evan Prodromou's avatar Evan Prodromou

handle empty path better

parent e705ef4e
......@@ -273,7 +273,8 @@ function common_local_url($action, $args=NULL) {
$extra .= "&${key}=${value}";
return "http://".$config['site']['server'].'/'.$config['site']['path']."/index.php?action=${action}${extra}";
$pathpart = ($config['site']['path']) ? $config['site']['path']."/" : '';
return "http://".$config['site']['server'].'/'.$pathpart."index.php?action=${action}${extra}";
function commmon_date_string($dt) {
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