mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 13:28:39 +00:00
fix trim
This commit is contained in:
parent
c79a711fd3
commit
f24da643ec
|
|
@ -95,11 +95,11 @@ final class ApplicationManager
|
||||||
*/
|
*/
|
||||||
public function install(string $source, string $destination) : void
|
public function install(string $source, string $destination) : void
|
||||||
{
|
{
|
||||||
if (\file_exists($destination) || !\file_exists($source)) {
|
if (!\file_exists($source) || \file_exists($destination)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$app = $this->loadInfo(\rtrim('/\\', $source) . '/info.json');
|
$app = $this->loadInfo(\rtrim($source, '/\\') . '/info.json');
|
||||||
$this->applications[$app->getInternalName()] = $app;
|
$this->applications[$app->getInternalName()] = $app;
|
||||||
|
|
||||||
$this->installFiles($source, $destination);
|
$this->installFiles($source, $destination);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user