Ignore:
Timestamp:
Mar 12, 2007, 1:15:45 AM (17 years ago)
Author:
plg
Message:

Improvement: in history search filtered lines, clicking on filename leads to
standard size picture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/history.php

    r1893 r1896  
    542542        );
    543543    }
     544
     545    $image_string = '';
     546    if (isset($line['image_id']))
     547    {
     548      $picture_url = make_picture_url(
     549        array(
     550          'image_id' => $line['image_id'],
     551          )
     552        );
     553     
     554      $image_string = '<a href="'.$picture_url.'">';
     555      $image_string.= '('.$line['image_id'].')';
     556
     557      if (isset($label_of_image[$line['image_id']]))
     558      {
     559        $image_string.= ' '.$label_of_image[$line['image_id']];
     560      }
     561      else
     562      {
     563        $image_string.= ' unknown filename';
     564      }
     565    }
    544566   
    545567    $template->assign_block_vars(
     
    550572        'USER'      => $user_string,
    551573        'IP'        => $line['IP'],
    552         'IMAGE'     => isset($line['image_id'])
    553           ? ( isset($label_of_image[$line['image_id']])
    554                 ? sprintf(
    555                     '(%u) %s',
    556                     $line['image_id'],
    557                     $label_of_image[$line['image_id']]
    558                   )
    559                 : sprintf(
    560                     '(%u) deleted ',
    561                     $line['image_id']
    562                   )
    563             )
    564           : '',
     574        'IMAGE'     => $image_string,
    565575        'TYPE'      => $line['image_type'],
    566576        'SECTION'   => $line['section'],
Note: See TracChangeset for help on using the changeset viewer.