protected function DeleteCategoryPost() { if ($this->post->id == '') { $this->set('message', 'Invalid category!'); $this->render('core_error.tpl'); return; } DownloadData::RemoveCategory($this->post->id); $this->set('message', 'Category removed!'); $this->render('core_success.tpl'); }
protected function DeleteCategoryPost() { $this->checkPermission(EDIT_DOWNLOADS); if ($this->post->id == '') { $this->set('message', 'Invalid category!'); $this->render('core_error.php'); return; } DownloadData::RemoveCategory($this->post->id); $this->set('message', 'Category removed!'); $this->render('core_success.php'); }