original_string: protected function deletePage()
      {
          $this->controlAccess('page_delete');
  
          if ($this->page->delete($this->data_page['page_id'])) {
              $this->redirect('admin/content/page', $this->text('Page has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Page has not been deleted'), 'warning');
      }
code: protected function deletePage()
      {
          $this->controlAccess('page_delete');
  
          if ($this->page->delete($this->data_page['page_id'])) {
              $this->redirect('admin/content/page', $this->text('Page has been deleted'), 'success');
          }
  
          $this->redirect('', $this->text('Page has not been deleted'), 'warning');
      }
code_tokens: protected function deletePage ( ) { $ this -> controlAccess ( 'page_delete' ) ; if ( $ this -> page -> delete ( $ this -> data_page [ 'page_id' ] ) ) { $ this -> redirect ( 'admin/content/page' , $ this -> text ( 'Page has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Page has not been deleted' ) , 'warning' ) ; }
docstring: Deletes a page
docstring_tokens: Deletes a page