* Rename extension to hooks.
This commit is contained in:
@@ -295,7 +295,7 @@ class bug extends control
|
||||
$this->action->create('todo', $output['todoID'], 'finished', '', "BUG:$bugID");
|
||||
}
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
|
||||
|
||||
@@ -615,7 +615,7 @@ class bug extends control
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api') $this->send(array('status' => 'success', 'data' => $bugID));
|
||||
$bug = $this->bug->getById($bugID);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if($bug->toTask != 0)
|
||||
{
|
||||
@@ -832,7 +832,7 @@ class bug extends control
|
||||
$actionID = $this->action->create('bug', $bugID, 'Assigned', $this->post->comment, $this->post->assignedTo);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if(isonlybody()) die(js::closeModal('parent.parent'));
|
||||
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
|
||||
@@ -947,7 +947,7 @@ class bug extends control
|
||||
$actionID = $this->action->create('bug', $bugID, 'bugConfirmed', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if(isonlybody()) die(js::closeModal('parent.parent'));
|
||||
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
|
||||
@@ -1005,7 +1005,7 @@ class bug extends control
|
||||
|
||||
$bug = $this->bug->getById($bugID);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if($bug->toTask != 0)
|
||||
{
|
||||
@@ -1097,7 +1097,7 @@ class bug extends control
|
||||
$actionID = $this->action->create('bug', $bugID, 'Activated', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if(isonlybody()) die(js::closeModal('parent.parent'));
|
||||
die(js::locate($this->createLink('bug', 'view', "bugID=$bugID"), 'parent'));
|
||||
@@ -1136,7 +1136,7 @@ class bug extends control
|
||||
$actionID = $this->action->create('bug', $bugID, 'Closed', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
if(isonlybody()) die(js::closeModal('parent.parent'));
|
||||
if(defined('RUN_MODE') && RUN_MODE == 'api')
|
||||
@@ -1304,7 +1304,7 @@ class bug extends control
|
||||
$this->bug->delete(TABLE_BUG, $bugID);
|
||||
if($bug->toTask != 0) echo js::alert($this->lang->bug->remindTask . $bug->toTask);
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $bugID);
|
||||
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $bugID);
|
||||
|
||||
die(js::locate($this->session->bugList, 'parent'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user