mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Enable the packages/plugins
This commit is contained in:
parent
4bb85e0926
commit
8e73926725
2 changed files with 5 additions and 14 deletions
|
|
@ -503,15 +503,9 @@ trait Admin
|
|||
));
|
||||
}
|
||||
|
||||
private function rainLoopRepo() : string
|
||||
private function snappyMailRepo() : string
|
||||
{
|
||||
$sUrl = APP_REPOSITORY_PATH;
|
||||
if ('' !== $sUrl)
|
||||
{
|
||||
$sUrl = rtrim($sUrl, '\\/').'/';
|
||||
}
|
||||
|
||||
return $sUrl;
|
||||
return 'https://snappymail.eu/repository/';
|
||||
}
|
||||
|
||||
private function rainLoopUpdatable() : bool
|
||||
|
|
@ -529,7 +523,7 @@ trait Admin
|
|||
$aRep = null;
|
||||
|
||||
$sRep = '';
|
||||
$sRepoFile = 'repository.json';
|
||||
$sRepoFile = 'packages.json';
|
||||
$iRepTime = 0;
|
||||
|
||||
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
||||
|
|
@ -614,7 +608,7 @@ trait Admin
|
|||
{
|
||||
$bRainLoopUpdatable = $this->rainLoopUpdatable();
|
||||
|
||||
$aResult = $this->getRepositoryDataByUrl($this->rainLoopRepo(), $bReal);
|
||||
$aResult = $this->getRepositoryDataByUrl($this->snappyMailRepo(), $bReal);
|
||||
|
||||
$aSub = array();
|
||||
foreach ($aResult as $aItem)
|
||||
|
|
@ -783,8 +777,7 @@ trait Admin
|
|||
$bResult = false;
|
||||
if ('' !== $sRealFile)
|
||||
{
|
||||
$sUrl = $this->rainLoopRepo().$sRealFile;
|
||||
$sTmp = $this->downloadRemotePackageByUrl($sUrl);
|
||||
$sTmp = $this->downloadRemotePackageByUrl($this->snappyMailRepo().$sRealFile);
|
||||
}
|
||||
|
||||
if ('' !== $sTmp)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue