mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-16 20:08:41 +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
|
||||
{
|
||||
if (\file_exists($destination) || !\file_exists($source)) {
|
||||
if (!\file_exists($source) || \file_exists($destination)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$app = $this->loadInfo(\rtrim('/\\', $source) . '/info.json');
|
||||
$app = $this->loadInfo(\rtrim($source, '/\\') . '/info.json');
|
||||
$this->applications[$app->getInternalName()] = $app;
|
||||
|
||||
$this->installFiles($source, $destination);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user