Permalink
Browse files

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
  • Loading branch information...
plegall committed Jul 27, 2010
1 parent 8ce8564 commit aadf746e49231df14c4a94ca31f9eb2979d9faed
Showing with 4 additions and 0 deletions.
  1. +2 −0 include/category_default.inc.php
  2. +2 −0 picture.php
@@ -144,6 +144,8 @@
$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 @@ function default_picture_content($content, $element_info)
$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'],

0 comments on commit aadf746

Please sign in to comment.