* Optimize function executeHooks.

This commit is contained in:
liugang
2019-07-24 10:49:41 +08:00
parent f1b0faf11b
commit f70eef7789
12 changed files with 66 additions and 64 deletions
+3 -3
View File
@@ -89,7 +89,7 @@ class testsuite extends control
}
$actionID = $this->loadModel('action')->create('testsuite', $suiteID, 'opened');
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $suiteID);
$this->executeHooks($this->methodName, $suiteID);
$response['locate'] = $this->createLink('testsuite', 'browse', "productID=$productID");
$response['message'] = $this->lang->testsuite->successSaved;
@@ -188,7 +188,7 @@ class testsuite extends control
$this->action->logHistory($actionID, $changes);
}
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $suiteID);
$this->executeHooks($this->methodName, $suiteID);
$method = $suite->type == 'library' ? 'libView' : 'view';
$response['locate'] = inlink($method, "suiteID=$suiteID");
@@ -250,7 +250,7 @@ class testsuite extends control
$this->testsuite->delete($suiteID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $suiteID);
$this->executeHooks($this->methodName, $suiteID);
/* if ajax request, send result. */
if($this->server->ajax)