aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Controllers/BaseController.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-02-13 17:30:05 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-02-13 17:30:05 +0000
commit323d1b376423f09d758b381defcf37b26d582a7a (patch)
tree22133b03bf9bc1712a940278da4ad9f91a7712a2 /h-source/Application/Controllers/BaseController.php
parent26fca82d7f500d9771b8876e9a480f8619a2988d (diff)
improved history
Diffstat (limited to 'h-source/Application/Controllers/BaseController.php')
-rw-r--r--h-source/Application/Controllers/BaseController.php8
1 files changed, 7 insertions, 1 deletions
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');