Skip to content

Commit

Permalink
Fix bug: Remove event "community_index" only if plugin "community" is…
Browse files Browse the repository at this point in the history
… enabled
  • Loading branch information
icy committed Jul 12, 2012
1 parent f38c763 commit 829f04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# Hooks declarations ###################################################

add_event_handler('loc_end_section_init', 'icy_picture_modify_section_init');
remove_event_handler('loc_end_index', 'community_index');
add_event_handler('loc_end_index', 'icy_picture_modify_index', 40);

add_event_handler('loc_begin_picture', 'icy_picture_modify_loc_begin_picture');
Expand All @@ -37,6 +36,7 @@
add_event_handler('sendResponse', 'icy_picture_modify_fix_community_acl', 40);

if (icy_plugin_enabled("community")) {
remove_event_handler('loc_end_index', 'community_index');
add_event_handler('community_ws_categories_getList', 'icy_picture_modify_fix_community_acl', 40);
}

Expand Down

0 comments on commit 829f04d

Please sign in to comment.