a4927e33b3b45f98123624ae87ad22a70ea046be

Author: alkemann

Date: 2009-09-29 15:01:06 +0200

Aritcle delete action to use delete() instead of del() (since delete is overwritten by model)

diff --git a/controllers/articles_controller.php b/controllers/articles_controller.php index b8d9332..2fb3c29 100644 --- a/controllers/articles_controller.php +++ b/controllers/articles_controller.php @@ -99,7 +99,7 @@ class ArticlesController extends AppController { $this->Session->setFlash(__('Invalid id for Article', true)); $this->redirect(array('action'=>'index')); } - if ($this->Article->del($id)) { + if ($this->Article->delete($id)) { $this->Session->setFlash(__('Article deleted', true)); $this->redirect(array('action'=>'index')); }