mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
merge r6711 from branch 2.1 to trunk
add trigger for ExtendedDescription on photo name git-svn-id: http://piwigo.org/svn/trunk@6712 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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' :
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user