Ignore:
Timestamp:
Sep 11, 2012, 4:47:32 AM (12 years ago)
Author:
rvelices
Message:

fix batch manager unit photo titles with quotes (+ send all photo data to template)
fix batch manager global fix tiptip selector for thumbs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_unit.php

    r17765 r17856  
    199199
    200200  $query = '
    201 SELECT id,path,representative_ext,name,date_creation,comment,author,level,file
     201SELECT *
    202202  FROM '.IMAGES_TABLE;
    203203 
     
    264264
    265265    $template->append(
    266       'elements',
     266      'elements', array_merge($row,
    267267      array(
    268268        'ID' => $row['id'],
     
    271271        'LEGEND' => $legend,
    272272        'U_EDIT' => get_root_url().'admin.php?page=photo-'.$row['id'],
    273         'NAME' => !empty($row['name'])?$row['name']:'',
    274         'AUTHOR' => !empty($row['author'])?htmlspecialchars($row['author']):'',
     273        'NAME' => htmlspecialchars(@$row['name']),
     274        'AUTHOR' => htmlspecialchars(@$row['author']),
    275275        'LEVEL' => !empty($row['level'])?$row['level']:'0',
    276         'DESCRIPTION' => !empty($row['comment'])?$row['comment']:'',
     276        'DESCRIPTION' => htmlspecialchars(@$row['comment']),
    277277        'DATE_CREATION_YEAR' => $year,
    278278        'DATE_CREATION_MONTH' => (int)$month,
     
    280280        'TAGS' => $tag_selection,
    281281        )
    282       );
     282      ));
    283283  }
    284284
Note: See TracChangeset for help on using the changeset viewer.