diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-06-18 19:51:42 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-06-18 19:51:42 +0000 |
commit | 3c13387dfd965afe5c3b2d9bd0e31303599d8784 (patch) | |
tree | bb516e9903da31323f9876f5540dac3ef4ca4d0f /include/common.inc.php | |
parent | f894f1208c0ccbd1945baf5c1cf05adb61535caf (diff) |
since number of accepted args not required for add_event_handler, simplify calls
git-svn-id: http://piwigo.org/svn/trunk@28714 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/common.inc.php')
-rw-r--r-- | include/common.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php index e6a1d5877..d282da5a1 100644 --- a/include/common.inc.php +++ b/include/common.inc.php @@ -269,8 +269,8 @@ add_event_handler('render_tag_url', 'str2url'); add_event_handler('blockmanager_register_blocks', 'register_default_menubar_blocks', EVENT_HANDLER_PRIORITY_NEUTRAL-1); if ( !empty($conf['original_url_protection']) ) { - add_event_handler('get_element_url', 'get_element_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 ); - add_event_handler('get_src_image_url', 'get_src_image_url_protection_handler', EVENT_HANDLER_PRIORITY_NEUTRAL, 2 ); + add_event_handler('get_element_url', 'get_element_url_protection_handler'); + add_event_handler('get_src_image_url', 'get_src_image_url_protection_handler'); } trigger_notify('init'); ?> |