diff options
Diffstat (limited to 'h-source/Application/Controllers')
-rw-r--r-- | h-source/Application/Controllers/WikiController.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/h-source/Application/Controllers/WikiController.php b/h-source/Application/Controllers/WikiController.php index b282d24..8e26454 100644 --- a/h-source/Application/Controllers/WikiController.php +++ b/h-source/Application/Controllers/WikiController.php @@ -487,6 +487,7 @@ class WikiController extends BaseController public function pages($lang = 'en') { + $data['topString'] = 'list of pages'; $data['title'] = gtext('list of pages').' - '.Website::$generalName; $this->setArgKeys(array('page:forceNat'=>1)); @@ -511,6 +512,35 @@ class WikiController extends BaseController $this->right(); } + public function deleted($lang = 'en') + { + $this->s['registered']->check('admin'); + + $data['topString'] = 'list of deleted pages'; + $data['title'] = gtext('list of deleted pages').' - '.Website::$generalName; + + $this->setArgKeys(array('page:forceNat'=>1)); + + $this->shift(1); + + $this->helper('Pages','wiki/deleted/'.$this->lang,'page'); + + $this->m['WikiModel']->clear()->select()->where(array('-deleted'=>'yes'))->orderBy('id_wiki desc'); + + $recordNumber = $this->m['WikiModel']->rowNumber(); + $page = $this->viewArgs['page']; + + $this->m['WikiModel']->limit = $this->h['Pages']->getLimit($page,$recordNumber,30); + + $data['table'] = $this->m['WikiModel']->send(); + + $data['pageList'] = $this->h['Pages']->render($page-7,15); + + $this->append($data); + $this->load('pages'); + $this->right(); + } + //print all the modifications to the wiki public function modifications($lang = 'en') { |