diff options
author | rvelices <rv-github@modusoptimus.com> | 2012-09-11 02:47:32 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2012-09-11 02:47:32 +0000 |
commit | c78c9760cadcabeb6b7d9ba44a7fad9521e707fc (patch) | |
tree | 5900adba678386b922433ff8ddcc653753fcc7a7 /admin/batch_manager_unit.php | |
parent | 4a2f9da888f9832b982b4405f3592d6810ab47e8 (diff) |
fix batch manager unit photo titles with quotes (+ send all photo data to template)
fix batch manager global fix tiptip selector for thumbs
git-svn-id: http://piwigo.org/svn/trunk@17856 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/batch_manager_unit.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/batch_manager_unit.php b/admin/batch_manager_unit.php index d6702db21..42046481c 100644 --- a/admin/batch_manager_unit.php +++ b/admin/batch_manager_unit.php @@ -198,7 +198,7 @@ if (count($page['cat_elements_id']) > 0) $query = ' -SELECT id,path,representative_ext,name,date_creation,comment,author,level,file +SELECT * FROM '.IMAGES_TABLE; if ($is_category) @@ -263,23 +263,23 @@ SELECT } $template->append( - 'elements', + 'elements', array_merge($row, array( 'ID' => $row['id'], 'TN_SRC' => DerivativeImage::url(IMG_THUMB, $src_image), 'FILE_SRC' => DerivativeImage::url(IMG_LARGE, $src_image), 'LEGEND' => $legend, 'U_EDIT' => get_root_url().'admin.php?page=photo-'.$row['id'], - 'NAME' => !empty($row['name'])?$row['name']:'', - 'AUTHOR' => !empty($row['author'])?htmlspecialchars($row['author']):'', + 'NAME' => htmlspecialchars(@$row['name']), + 'AUTHOR' => htmlspecialchars(@$row['author']), 'LEVEL' => !empty($row['level'])?$row['level']:'0', - 'DESCRIPTION' => !empty($row['comment'])?$row['comment']:'', + 'DESCRIPTION' => htmlspecialchars(@$row['comment']), 'DATE_CREATION_YEAR' => $year, 'DATE_CREATION_MONTH' => (int)$month, 'DATE_CREATION_DAY' => (int)$day, 'TAGS' => $tag_selection, ) - ); + )); } $template->assign('ELEMENT_IDS', implode(',', $element_ids)); |