Ignore:
Timestamp:
Mar 9, 2011, 11:47:08 AM (13 years ago)
Author:
patdenice
Message:

Code optimisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/modules/Recent/main.inc.php

    r9369 r9581  
    7878
    7979  // template thumbnail initialization
    80   $template->set_filenames( array( 'pwgs_recent' => 'thumbnails.tpl',));
    81 
    8280  trigger_action('loc_begin_index_thumbnails', $pictures);
    83   $tpl_thumbnails_var = array();
     81  $block['thumbnails'] = array();
    8482
    8583  foreach ($pictures as $row)
     
    143141    }
    144142
    145     $tpl_thumbnails_var[] = $tpl_var;
     143    $block['thumbnails'][] = $tpl_var;
    146144  }
    147145
    148   $tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures);
    149   $template->assign('thumbnails', $tpl_thumbnails_var);
     146  $block['thumbnails'] = trigger_event('loc_end_index_thumbnails', $block['thumbnails'], $pictures);
    150147
    151   $block['CONTENT'] = $template->parse('pwgs_recent', true);
    152   $block['TEMPLATE'] = 'stuffs_recent.tpl';
     148  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    153149}
    154150
Note: See TracChangeset for help on using the changeset viewer.