mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 00:08:18 +08: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)
|
||||
|
|
|
@ -44,8 +44,6 @@
|
|||
|
||||
define('APP_DUMMY', '********');
|
||||
define('APP_DEV_VERSION', '0.0.0');
|
||||
define('APP_REPOSITORY_PATH', 'http://repository.rainloop.net/v1/');
|
||||
define('APP_REPO_CORE_FILE', 'http://repository.rainloop.net/v2/core.{{channel}}.json');
|
||||
|
||||
$sCustomDataPath = '';
|
||||
$sCustomConfiguration = '';
|
||||
|
|
Loading…
Reference in a new issue