aboutsummaryrefslogtreecommitdiff
path: root/h-source
diff options
context:
space:
mode:
Diffstat (limited to 'h-source')
-rw-r--r--h-source/Application/Controllers/WikiController.php3
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'];