diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2015-09-17 13:07:03 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2015-09-17 13:07:03 +0000 |
commit | e64adf84534cfa4993c4c095a46dbf1d04e2a0a8 (patch) | |
tree | 1bf293c71563b0d4ea1c9a409a74fb549876577e /h-source/Application | |
parent | 9d2f868fd966fb84406cd0627477de3bff529dba (diff) |
fixed bug in wiki revisions
Diffstat (limited to 'h-source/Application')
-rw-r--r-- | h-source/Application/Controllers/WikiController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/WikiController.php b/h-source/Application/Controllers/WikiController.php index 5dc05b8..6304d77 100644 --- a/h-source/Application/Controllers/WikiController.php +++ b/h-source/Application/Controllers/WikiController.php @@ -259,7 +259,8 @@ class WikiController extends BaseController $data['title'] = 'history - '.Website::$generalName; //get the first revision - $res = $this->m['WikirevisionsModel']->db->select('revisions','id_rev','id_wiki='.$clean['id'],null,'id_rev',1); + $res = $this->m['WikirevisionsModel']->db->select('wiki_revisions','id_rev','id_wiki='.$clean['id'],null,'id_rev',1); +// echo $this->m['WikirevisionsModel']->getQuery(); if (count($res) > 0) { $data['firstRev'] = $res[0]['wiki_revisions']['id_rev']; |