* Optimize function executeHooks.
This commit is contained in:
@@ -26,7 +26,7 @@ class build extends control
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
$this->loadModel('action')->create('build', $buildID, 'opened');
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $buildID);
|
||||
$this->executeHooks($this->methodName, $buildID);
|
||||
|
||||
if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "parent.loadProjectBuilds($projectID)"));//Code for task #5126.
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('build', 'view', "buildID=$buildID")));
|
||||
@@ -108,7 +108,7 @@ class build extends control
|
||||
if(!empty($changes)) $this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $buildID);
|
||||
$this->executeHooks($this->methodName, $buildID);
|
||||
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('view', "buildID=$buildID")));
|
||||
}
|
||||
@@ -261,7 +261,7 @@ class build extends control
|
||||
$build = $this->build->getById($buildID);
|
||||
$this->build->delete(TABLE_BUILD, $buildID);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $buildID);
|
||||
$this->executeHooks($this->methodName, $buildID);
|
||||
|
||||
/* if ajax request, send result. */
|
||||
if($this->server->ajax)
|
||||
|
||||
Reference in New Issue
Block a user