Enable the packages/plugins

This commit is contained in:
djmaze 2020-09-24 21:38:55 +02:00
parent 4bb85e0926
commit 8e73926725
2 changed files with 5 additions and 14 deletions

View file

@ -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)

View file

@ -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 = '';