Beispiel #1
0
 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');
 }
Beispiel #2
0
 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');
 }