diff --git a/module/bug/control.php b/module/bug/control.php index 96808db83a..e3fd122de5 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -221,21 +221,21 @@ class bug extends control if(!empty($_POST)) { - $responser['result'] = 'success'; - $responser['message'] = ''; + $response['result'] = 'success'; + $response['message'] = ''; $bugID = $this->bug->create(); if(dao::isError()) { - $responser['result'] = 'fail'; - $responser['message'] = dao::getError(); - $this->send($responser); + $response['result'] = 'fail'; + $response['message'] = dao::getError(); + $this->send($response); } $actionID = $this->action->create('bug', $bugID, 'Opened'); $this->sendmail($bugID, $actionID); - $responser['locate'] = $this->createLink('bug', 'browse', "productID={$this->post->product}&type=byModule¶m={$this->post->module}"); - $this->send($responser); + $response['locate'] = $this->createLink('bug', 'browse', "productID={$this->post->product}&type=byModule¶m={$this->post->module}"); + $this->send($response); } /* Get product, then set menu. */ diff --git a/module/story/control.php b/module/story/control.php index 8c50ae1b05..df15b7ade3 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -39,15 +39,15 @@ class story extends control { if(!empty($_POST)) { - $responser['result'] = 'success'; - $responser['message'] = ''; + $response['result'] = 'success'; + $response['message'] = ''; $storyID = $this->story->create($projectID, $bugID); if(dao::isError()) { - $responser['result'] = 'fail'; - $responser['message'] = dao::getError(); - $this->send($responser); + $response['result'] = 'fail'; + $response['message'] = dao::getError(); + $this->send($response); } if($bugID == 0) { @@ -60,19 +60,19 @@ class story extends control $this->sendMail($storyID, $actionID); if($this->post->newStory) { - $responser['message'] = $this->lang->story->successSaved . $this->lang->story->newStory; - $responser['locate'] = $this->createLink('story', 'create', "productID=$productID&moduleID=$moduleID&story=0&projectID=$projectID&bugID=$bugID"); - $this->send($responser); + $response['message'] = $this->lang->story->successSaved . $this->lang->story->newStory; + $response['locate'] = $this->createLink('story', 'create', "productID=$productID&moduleID=$moduleID&story=0&projectID=$projectID&bugID=$bugID"); + $this->send($response); } if($projectID == 0) { - $responser['locate'] = $this->createLink('story', 'view', "storyID=$storyID"); - $this->send($responser); + $response['locate'] = $this->createLink('story', 'view', "storyID=$storyID"); + $this->send($response); } else { - $responser['locate'] = $this->createLink('project', 'story', "projectID=$projectID"); - $this->send($responser); + $response['locate'] = $this->createLink('project', 'story', "projectID=$projectID"); + $this->send($response); } } diff --git a/module/task/control.php b/module/task/control.php index 64ba754069..e87ae07d43 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -65,15 +65,15 @@ class task extends control if(!empty($_POST)) { - $responser['result'] = 'success'; - $responser['message'] = ''; + $response['result'] = 'success'; + $response['message'] = ''; $tasksID = $this->task->create($projectID); if(dao::isError()) { - $responser['result'] = 'fail'; - $responser['message'] = dao::getError(); - $this->send($responser); + $response['result'] = 'fail'; + $response['message'] = dao::getError(); + $this->send($response); } /* Create actions. */ @@ -87,24 +87,24 @@ class task extends control /* Locate the browser. */ if($this->post->after == 'continueAdding') { - $responser['message'] = $this->lang->task->successSaved . $this->lang->task->afterChoices['continueAdding']; - $responser['locate'] = $this->createLink('task', 'create', "projectID=$projectID&storyID={$this->post->story}"); - $this->send($responser); + $response['message'] = $this->lang->task->successSaved . $this->lang->task->afterChoices['continueAdding']; + $response['locate'] = $this->createLink('task', 'create', "projectID=$projectID&storyID={$this->post->story}"); + $this->send($response); } elseif($this->post->after == 'toTaskList') { - $responser['locate'] = $taskLink; - $this->send($responser); + $response['locate'] = $taskLink; + $this->send($response); } elseif($this->post->after == 'toStoryList') { - $responser['locate'] = $storyLink; - $this->send($responser); + $response['locate'] = $storyLink; + $this->send($response); } else { - $responser['locate'] = $taskLink; - $this->send($responser); + $response['locate'] = $taskLink; + $this->send($response); } } diff --git a/module/testcase/control.php b/module/testcase/control.php index f06bdbe300..79b0d5149c 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -177,20 +177,20 @@ class testcase extends control $this->loadModel('story'); if(!empty($_POST)) { - $responser['result'] = 'success'; - $responser['message'] = ''; + $response['result'] = 'success'; + $response['message'] = ''; $caseID = $this->testcase->create($bugID); if(dao::isError()) { - $responser['result'] = 'fail'; - $responser['message'] = dao::getError(); - $this->send($responser); + $response['result'] = 'fail'; + $response['message'] = dao::getError(); + $this->send($response); } $this->loadModel('action'); $this->action->create('case', $caseID, 'Opened'); - $responser['locate'] = $this->createLink('testcase', 'browse', "productID=$_POST[product]&browseType=byModule¶m=$_POST[module]"); - $this->send($responser); + $response['locate'] = $this->createLink('testcase', 'browse', "productID=$_POST[product]&browseType=byModule¶m=$_POST[module]"); + $this->send($response); } if(empty($this->products)) $this->locate($this->createLink('product', 'create'));