From d5e5ddd22a934c589127189e56fc86d937910f3d Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Thu, 4 Aug 2011 17:23:40 +0200 Subject: [PATCH] Use messaging system instead of writing to templates --- application/controllers/trials.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/trials.php b/application/controllers/trials.php index ff75a2e..6af1cd2 100644 --- a/application/controllers/trials.php +++ b/application/controllers/trials.php @@ -100,7 +100,7 @@ class Trials extends CI_Controller { redirect('/trial/detail/' . $result, 'refresh'); } else { - $tpl['error'][] = "Der Versuch konnte nicht gespeichert werden."; + $this->messages->add('Der Versuch konnte nicht gespeichert werden.', 'error'); $this->load->view('trial/new', $tpl); } }