aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Models/WikitalkModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Models/WikitalkModel.php')
-rw-r--r--h-source/Application/Models/WikitalkModel.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/h-source/Application/Models/WikitalkModel.php b/h-source/Application/Models/WikitalkModel.php
index 3bff3d3..2595a1a 100644
--- a/h-source/Application/Models/WikitalkModel.php
+++ b/h-source/Application/Models/WikitalkModel.php
@@ -20,7 +20,7 @@
if (!defined('EG')) die('Direct access not allowed!');
-class WikitalkModel extends Model_Tree
+class WikitalkModel extends BaseModel
{
public function __construct() {
@@ -41,6 +41,15 @@ class WikitalkModel extends Model_Tree
{
return parent::update($id);
}
+
+ public function insert()
+ {
+ if (parent::insert())
+ {
+ //update the history
+ $this->updateHistory('wiki_talk_ins');
+ }
+ }
public $formStruct = array(
'entries' => array(