From 323d1b376423f09d758b381defcf37b26d582a7a Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Sun, 13 Feb 2011 17:30:05 +0000 Subject: improved history --- h-source/Application/Controllers/BaseController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'h-source/Application/Controllers/BaseController.php') diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php index db85405..7eb4236 100644 --- a/h-source/Application/Controllers/BaseController.php +++ b/h-source/Application/Controllers/BaseController.php @@ -46,6 +46,7 @@ class BaseController extends Controller header("Cache-Control: no-cache"); $this->model('BoxesModel'); + $this->model('HistoryModel'); $this->load('header'); $this->load('footer','last'); @@ -116,7 +117,12 @@ class BaseController extends Controller $data['language_links'] = $this->buildLanguageLinks($this->lang); -// print_r($this->_queryString); + $data['lastModif'] = $this->m['HistoryModel'] + ->select() + ->where(array('type'=>'wiki','gr'=>'registered')) + ->orderBy('id_history desc') + ->limit(5) + ->send(); $this->append($data); $this->load('right'); -- cgit v1.2.3