aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-10-02 05:38:54 +0000
committerrvelices <rv-github@modusoptimus.com>2007-10-02 05:38:54 +0000
commit2889cbc4eb06ce32caf3d5f8d592120830c4b676 (patch)
treed286d36b599997942997b859e0652648acbe9d49 /include/common.inc.php
parent00d39fe8ba9c559a1208ca135cb7203b37ba68ce (diff)
- render_category_description and render_category_literal_description events refactoring
git-svn-id: http://piwigo.org/svn/trunk@2117 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index f3e4f093d..ee043642c 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -171,9 +171,9 @@ if (is_a_guest())
}
// template instance
-if
+if
(
- defined('IN_ADMIN') and IN_ADMIN and
+ defined('IN_ADMIN') and IN_ADMIN and
isset($user['admin_template']) and
isset($user['admin_theme'])
)
@@ -262,6 +262,8 @@ if (isset($conf['header_notes']))
}
// default event handlers
+add_event_handler('render_category_literal_description', 'render_category_literal_description');
+add_event_handler('render_category_description', 'render_category_description');
add_event_handler('render_comment_content', 'htmlspecialchars');
add_event_handler('render_comment_content', 'parse_comment_content');
add_event_handler('render_comment_author', 'strip_tags');