From 08c616b67bc72817e7da8f5749f26ceeb301f8e1 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Wed, 23 Feb 2011 18:07:44 +0000 Subject: modified the way the token is used inside IssuesController.php --- h-source/Application/Controllers/IssuesController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'h-source') diff --git a/h-source/Application/Controllers/IssuesController.php b/h-source/Application/Controllers/IssuesController.php index 9c0715d..8cef74b 100644 --- a/h-source/Application/Controllers/IssuesController.php +++ b/h-source/Application/Controllers/IssuesController.php @@ -85,7 +85,7 @@ class IssuesController extends BaseController } $data['notice'] = $this->m['IssuesModel']->notice; - + $this->m['IssuesModel']->setForm('issues/viewall/'.$this->lang.$this->viewStatus."#form",array('previewAction'=>'preview','insertAction'=>'submit')); $values = $this->m['IssuesModel']->getFormValues('insert','sanitizeHtml'); @@ -156,7 +156,10 @@ class IssuesController extends BaseController } $data['notice'] = $this->m['MessagesModel']->notice; - + + $this->viewArgs['token'] = $this->token; + $this->buildStatus(); + //create the form $this->m['MessagesModel']->setForm('issues/view/'.$this->lang."/".$clean['id_issue'].$this->viewStatus."#form",array('previewAction'=>'preview','insertAction'=>'submit')); -- cgit v1.2.3