mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +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;
|
return 'https://snappymail.eu/repository/';
|
||||||
if ('' !== $sUrl)
|
|
||||||
{
|
|
||||||
$sUrl = rtrim($sUrl, '\\/').'/';
|
|
||||||
}
|
|
||||||
|
|
||||||
return $sUrl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function rainLoopUpdatable() : bool
|
private function rainLoopUpdatable() : bool
|
||||||
|
|
@ -529,7 +523,7 @@ trait Admin
|
||||||
$aRep = null;
|
$aRep = null;
|
||||||
|
|
||||||
$sRep = '';
|
$sRep = '';
|
||||||
$sRepoFile = 'repository.json';
|
$sRepoFile = 'packages.json';
|
||||||
$iRepTime = 0;
|
$iRepTime = 0;
|
||||||
|
|
||||||
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
$oHttp = \MailSo\Base\Http::SingletonInstance();
|
||||||
|
|
@ -614,7 +608,7 @@ trait Admin
|
||||||
{
|
{
|
||||||
$bRainLoopUpdatable = $this->rainLoopUpdatable();
|
$bRainLoopUpdatable = $this->rainLoopUpdatable();
|
||||||
|
|
||||||
$aResult = $this->getRepositoryDataByUrl($this->rainLoopRepo(), $bReal);
|
$aResult = $this->getRepositoryDataByUrl($this->snappyMailRepo(), $bReal);
|
||||||
|
|
||||||
$aSub = array();
|
$aSub = array();
|
||||||
foreach ($aResult as $aItem)
|
foreach ($aResult as $aItem)
|
||||||
|
|
@ -783,8 +777,7 @@ trait Admin
|
||||||
$bResult = false;
|
$bResult = false;
|
||||||
if ('' !== $sRealFile)
|
if ('' !== $sRealFile)
|
||||||
{
|
{
|
||||||
$sUrl = $this->rainLoopRepo().$sRealFile;
|
$sTmp = $this->downloadRemotePackageByUrl($this->snappyMailRepo().$sRealFile);
|
||||||
$sTmp = $this->downloadRemotePackageByUrl($sUrl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('' !== $sTmp)
|
if ('' !== $sTmp)
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,6 @@
|
||||||
|
|
||||||
define('APP_DUMMY', '********');
|
define('APP_DUMMY', '********');
|
||||||
define('APP_DEV_VERSION', '0.0.0');
|
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 = '';
|
$sCustomDataPath = '';
|
||||||
$sCustomConfiguration = '';
|
$sCustomConfiguration = '';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue