mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 19:29:58 +03:00
add two extra param to render_element_description trigger: main_page_element_description and picture_page_element_description
git-svn-id: http://piwigo.org/svn/trunk@25202 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
6d73f88a51
commit
fc5c5d4b7c
4 changed files with 8 additions and 6 deletions
|
@ -543,12 +543,12 @@ function render_element_name($info)
|
|||
return get_name_from_file($info['file']);
|
||||
}
|
||||
|
||||
function render_element_description($info)
|
||||
function render_element_description($info, $param='')
|
||||
{
|
||||
$comment = $info['comment'];
|
||||
if (!empty($comment))
|
||||
{
|
||||
$comment = trigger_event('render_element_description', $comment);
|
||||
$comment = trigger_event('render_element_description', $comment, $param);
|
||||
return $comment;
|
||||
}
|
||||
return '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue