diff options
author | plegall <plg@piwigo.org> | 2010-07-27 12:30:25 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-07-27 12:30:25 +0000 |
commit | 7a7569eda226df3a8d9a935b1e4a82a7902a7b80 (patch) | |
tree | ceeb79e81dbd8260bf5e614f49af77c9ab7994c6 | |
parent | 95ec94ea75b00c6ddf78e40611cbcc2871c909c0 (diff) |
add trigger for ExtendedDescription on photo name
git-svn-id: http://piwigo.org/svn/branches/2.1@6711 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r-- | include/category_default.inc.php | 2 | ||||
-rw-r--r-- | picture.php | 2 |
2 files changed, 4 insertions, 0 deletions
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'], |