1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-05 10:49:36 +02:00

Refactor str_replace call.

This commit is contained in:
Caleb Mazalevskis 2023-02-15 23:09:36 +08:00
parent 12049cba3a
commit 89362c403c
No known key found for this signature in database
GPG key ID: 082E6BC1046FAB95

View file

@ -308,8 +308,7 @@ function isAPPInstalled($appName)
function getPathToApplication()
{
$path = str_replace("install/index.php", "", $_SERVER["SCRIPT_FILENAME"]);
return str_replace("view/configurations.php", "", $path);
return str_replace(['install/index.php', 'view/configurations.php'], '', $_SERVER['SCRIPT_FILENAME']);
}
function getURLToApplication()