mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-12 05:22:35 +09:00
Fix error when autoinstall module can't download package data from server
https://xetown.com/questions/1505137
This commit is contained in:
parent
c8c23e8afe
commit
2717f420e0
1 changed files with 13 additions and 8 deletions
|
|
@ -79,14 +79,19 @@ class autoinstallAdminController extends autoinstall
|
||||||
$config = $oAdminModel->getAutoInstallAdminModuleConfig();
|
$config = $oAdminModel->getAutoInstallAdminModuleConfig();
|
||||||
|
|
||||||
$buff = FileHandler::getRemoteResource($config->download_server, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
$buff = FileHandler::getRemoteResource($config->download_server, $body, 3, "POST", "application/xml", array(), array(), array(), $request_config);
|
||||||
$xml = new XeXmlParser();
|
if ($buff)
|
||||||
$xmlDoc = $xml->parse($buff);
|
{
|
||||||
$this->updateCategory($xmlDoc);
|
$xml = new XeXmlParser();
|
||||||
$this->updatePackages($xmlDoc);
|
$xmlDoc = $xml->parse($buff);
|
||||||
$this->checkInstalled();
|
if ($xmlDoc)
|
||||||
|
{
|
||||||
$oAdminController = getAdminController('admin');
|
$this->updateCategory($xmlDoc);
|
||||||
$oAdminController->cleanFavorite();
|
$this->updatePackages($xmlDoc);
|
||||||
|
$this->checkInstalled();
|
||||||
|
}
|
||||||
|
$oAdminController = getAdminController('admin');
|
||||||
|
$oAdminController->cleanFavorite();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue