aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common.inc.php6
-rw-r--r--include/picture_comment.inc.php2
2 files changed, 6 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index e77d41f89..2b02e0cf8 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -5,7 +5,7 @@
// | Copyright (C) 2003-2006 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch : BSF (Best So Far)
-// | file : $RCSfile$
+// | file : $Id$
// | last update : $Date$
// | last modifier : $Author$
// | revision : $Revision$
@@ -228,4 +228,8 @@ if (count($header_msgs) > 0)
array('HEADER_MSG'=>$header_msg));
}
}
+
+// default event handlers
+add_event_handler('render_comment_content', 'parse_comment_content');
+trigger_action('init');
?> \ No newline at end of file
diff --git a/include/picture_comment.inc.php b/include/picture_comment.inc.php
index ad2878fcb..679f6287f 100644
--- a/include/picture_comment.inc.php
+++ b/include/picture_comment.inc.php
@@ -176,7 +176,7 @@ SELECT id,author,date,image_id,content
'mysql_datetime',
true),
- 'COMMENT' => parse_comment_content($row['content']),
+ 'COMMENT' => trigger_event('render_comment_content',$row['content']),
)
);