mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-06-15 17:24:29 +02:00
Merge pull request #35 from Kuzirashi/master
Fixed error in url() function
This commit is contained in:
commit
db24b1bdfb
@ -94,7 +94,7 @@ function url($path = false) {
|
||||
$domain = $_SERVER['SERVER_NAME'] . ($_SERVER['SERVER_PORT'] != 80 ? ':' . $_SERVER['SERVER_PORT'] : null);
|
||||
$folder = dirname($_SERVER['SCRIPT_NAME']);
|
||||
|
||||
return $protocol . $domain . $folder . '/' . $path;
|
||||
return $protocol . $domain . ($folder == '/' ? '' : $folder) . '/' . $path;
|
||||
}
|
||||
|
||||
function getCache() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user