상수처리 개선 및 버그수정

This commit is contained in:
hanssem@forppl.com 2020-08-10 00:58:15 +09:00
parent e3879ac634
commit 3b8b79acf1
6 changed files with 67 additions and 59 deletions

View file

@ -104,16 +104,14 @@ class adminAdminView extends admin
return;
}
$oModuleModel = getModel('module');
$module_info = $oModuleModel->getModuleConfig('autoinstall');
$location_site = $module_info->location_site ? $module_info->location_site : 'https://xe1.xpressengine.com/';
$download_server = $module_info->download_server ? $module_info->download_server : 'https://download.xpressengine.com/';
$oModel = getAdminModel('autoinstall');
$config = $oModel->getAutoInstallAdminModuleConfig();
$oAutoinstallModel = getModel('autoinstall');
$params = array();
$params["act"] = "getResourceapiLastupdate";
$body = XmlGenerater::generate($params);
$buff = FileHandler::getRemoteResource($download_server, $body, 3, "POST", "application/xml");
$buff = FileHandler::getRemoteResource($config->download_server, $body, 3, "POST", "application/xml");
$xml_lUpdate = new XmlParser();
$lUpdateDoc = $xml_lUpdate->parse($buff);
$updateDate = $lUpdateDoc->response->updatedate->body;