* Fix bug #39533.
This commit is contained in:
@@ -345,7 +345,6 @@ class install extends control
|
||||
*/
|
||||
public function app()
|
||||
{
|
||||
$this->loadModel('common');
|
||||
$this->loadModel('solution');
|
||||
$cloudSolution = $this->loadModel('store')->getSolution('name', 'devops');
|
||||
$components = $this->loadModel('store')->solutionConfig('name', 'devops');
|
||||
@@ -401,7 +400,6 @@ class install extends control
|
||||
*/
|
||||
public function ajaxProgress($id)
|
||||
{
|
||||
$this->loadModel('common');
|
||||
$solution = $this->loadModel('solution')->getByID($id);
|
||||
$logs = array();
|
||||
if(in_array($solution->status, array('installing', 'installed')))
|
||||
@@ -468,11 +466,10 @@ class install extends control
|
||||
*/
|
||||
public function ajaxUninstall($solutionID)
|
||||
{
|
||||
$this->loadModel('common');
|
||||
$this->loadModel('solution')->uninstall($solutionID);
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
|
||||
$this->send(array('result' => 'success', 'message' => '', 'locate' => $this->inLink('index')));
|
||||
$this->send(array('result' => 'success', 'message' => '', 'locate' => $this->inLink('app')));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -485,7 +482,6 @@ class install extends control
|
||||
*/
|
||||
public function ajaxCheck()
|
||||
{
|
||||
$this->loadModel('common');
|
||||
$data = fixer::input('post')->get();
|
||||
$appMap = $this->loadModel('store')->getAppMapByNames($data->apps);
|
||||
$resources = array();
|
||||
|
||||
Reference in New Issue
Block a user