From 7a7569eda226df3a8d9a935b1e4a82a7902a7b80 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 27 Jul 2010 12:30:25 +0000 Subject: [PATCH] add trigger for ExtendedDescription on photo name git-svn-id: http://piwigo.org/svn/branches/2.1@6711 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/category_default.inc.php | 2 ++ picture.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/category_default.inc.php b/include/category_default.inc.php index 3a823eb41..5f7fe5382 100644 --- a/include/category_default.inc.php +++ b/include/category_default.inc.php @@ -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' : diff --git a/picture.php b/picture.php index 7ab38f0f0..0caddddd5 100644 --- a/picture.php +++ b/picture.php @@ -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'],