Ignore:
Timestamp:
Feb 15, 2007, 4:03:16 AM (17 years ago)
Author:
rvelices
Message:
  • plugins: added new action user_init
  • put in a new admin_multi_view:allows admins to change on the fly language/theme and view gallery as guest (useful for developers and just to show a 'new' way of using plugins)
  • removed some warnings from history.php and increased table width to 99%
  • remove unused admin language strings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/history.php

    r1817 r1821  
    259259  $result = pwg_query($query);
    260260  $history_lines = $user_ids = $category_ids = $image_ids = array();
    261   while ($row = mysql_fetch_array($result))
     261  while ($row = mysql_fetch_assoc($result))
    262262  {
    263263    $user_ids[$row['user_id']] = 1;
     
    341341        'IP'        => $line['IP'],
    342342        'IMAGE'     => isset($line['image_id'])
    343           ? $label_of_image[$line['image_id']]
     343          ? ( isset($label_of_image[$line['image_id']])
     344                ? $label_of_image[$line['image_id']]
     345                : 'deleted '.$line['image_id'])
    344346          : $line['image_id'],
    345347        'SECTION'   => $line['section'],
    346348        'CATEGORY'  => isset($line['category_id'])
    347           ? $name_of_category[$line['category_id']]
     349          ? ( isset($name_of_category[$line['category_id']])
     350                ? $name_of_category[$line['category_id']]
     351                : 'deleted '.$line['category_id'] )
    348352          : '',
    349         'TAG'       => $line['tag_ids'],
     353        'TAGS'       => $line['tag_ids'],
    350354        'T_CLASS'   => ($i++ % 2) ? 'row1' : 'row2',
    351355        )
Note: See TracChangeset for help on using the changeset viewer.