File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments