add trigger for ExtendedDescription on photo name

git-svn-id: http://piwigo.org/svn/branches/2.1@6711 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2010-07-27 12:30:25 +00:00
parent 95ec94ea75
commit 7a7569eda2
2 changed files with 4 additions and 0 deletions

View file

@ -144,6 +144,8 @@ foreach ($pictures as $row)
$name = str_replace('_', ' ', get_filename_wo_extension($row['file']));
}
$name = trigger_event('render_element_description', $name);
switch ($page['section'])
{
case 'best_rated' :

View file

@ -511,6 +511,8 @@ while ($row = pwg_db_fetch_assoc($result))
$picture[$i]['name'] = str_replace('_', ' ', $file_wo_ext);
}
$picture[$i]['name'] = trigger_event('render_element_description', $picture[$i]['name']);
$picture[$i]['url'] = duplicate_picture_url(
array(
'image_id' => $row['id'],