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
This commit is contained in:
rvelices
2014-06-18 19:51:42 +00:00
parent f894f1208c
commit 3c13387dfd
7 changed files with 59 additions and 65 deletions

View File

@@ -135,12 +135,7 @@ if ( isset($_GET['metadata']) )
}
// add default event handler for rendering element content
add_event_handler(
'render_element_content',
'default_picture_content',
EVENT_HANDLER_PRIORITY_NEUTRAL,
2
);
add_event_handler('render_element_content', 'default_picture_content');
// add default event handler for rendering element description
add_event_handler('render_element_description', 'nl2br');