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:
parent
12049cba3a
commit
89362c403c
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue