Changeset 13457


Ignore:
Timestamp:
Mar 2, 2012, 2:52:37 PM (9 years ago)
Author:
plg
Message:

feature 2555: add original file name on Batch Manager

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/batch_manager_global.php

    r13077 r13457  
    759759    $src = DerivativeImage::thumb_url($row);
    760760
    761     $title = $row['name'];
    762     if (empty($title))
    763     {     
    764       $title = get_name_from_file($row['file']);
     761    $title = render_element_name($row);
     762    if ($title != get_name_from_file($row['file']))
     763    {
     764      $title.= ' ('.$row['file'].')';
    765765    }
    766766
  • trunk/admin/batch_manager_unit.php

    r13077 r13457  
    260260    $tag_selection = get_taglist($query);
    261261
     262    $legend = render_element_name($row);
     263    if ($legend != get_name_from_file($row['file']))
     264    {
     265      $legend.= ' ('.$row['file'].')';
     266    }
     267
    262268    $template->append(
    263269      'elements',
     
    266272        'TN_SRC' => $src,
    267273        'FILE_SRC' => $row['path'],
    268         'LEGEND' => render_element_name($row),
     274        'LEGEND' => $legend,
    269275        'U_EDIT' => get_root_url().'admin.php?page=photo-'.$row['id'],
    270276        'NAME' => !empty($row['name'])?$row['name']:'',
Note: See TracChangeset for help on using the changeset viewer.