Skip to content

Commit b6460e6

Browse files
committed
rename
1 parent 3781c8e commit b6460e6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

resources/lib/utils.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ function pathJoin(...$path_components)
9090
}
9191
}
9292

93-
function getURL(...$path_components)
93+
function getURL(...$url_components)
9494
{
95-
return pathJoin(CONFIG["site"]["url"], CONFIG["site"]["prefix"], ...$path_components);
95+
return pathJoin(CONFIG["site"]["url"], CONFIG["site"]["prefix"], ...$url_components);
9696
}
9797

98-
function getHyperlink($text, ...$path_components)
98+
function getHyperlink($text, ...$url_components)
9999
{
100100
$text = htmlspecialchars($text);
101-
$path_components = array_map("htmlspecialchars", $path_components);
102-
$url = getURL(...$path_components);
101+
$url_components = array_map("htmlspecialchars", $url_components);
102+
$url = getURL(...$url_components);
103103
return "<a href='$url'>$text</a>";
104104
}

0 commit comments

Comments
 (0)