avoid excess ampersands
This commit is contained in:
parent
1d389f0156
commit
0039aafe94
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ function make_link(?string $page=null, ?string $query=null, ?string $fragment=nu
|
|||
$parts['path'] = "$install_dir/$page";
|
||||
} else {
|
||||
$parts['path'] = "$install_dir/index.php";
|
||||
$query = "q=$page&$query";
|
||||
$query = empty($query) ? "q=$page" : "q=$page&$query";
|
||||
}
|
||||
$parts['query'] = $query; // http_build_query($query);
|
||||
$parts['fragment'] = $fragment; // http_build_query($hash);
|
||||
|
|
Reference in a new issue