Ignore:
Timestamp:
03/09/11 11:47:08 (9 years ago)
Author:
patdenice
Message:

Code optimisation.

File:
1 edited

Legend:

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

    r9369 r9581  
    6464 
    6565  // template thumbnail initialization 
    66   $template->set_filenames( array( 'pwgs_feat' => 'thumbnails.tpl',)); 
    67  
    6866  trigger_action('loc_begin_index_thumbnails', $pictures); 
    69   $tpl_thumbnails_var = array(); 
     67  $block['thumbnails'] = array(); 
    7068 
    7169  foreach ($pictures as $row) 
     
    129127    } 
    130128 
    131     $tpl_thumbnails_var[] = $tpl_var; 
     129    $block['thumbnails'][] = $tpl_var; 
    132130  } 
    133131 
    134   $tpl_thumbnails_var = trigger_event('loc_end_index_thumbnails', $tpl_thumbnails_var, $pictures); 
    135   $template->assign('thumbnails', $tpl_thumbnails_var); 
     132  $block['thumbnails'] = trigger_event('loc_end_index_thumbnails', $block['thumbnails'], $pictures); 
    136133 
    137   $block['CONTENT'] = $template->parse('pwgs_feat', true); 
    138   $block['TEMPLATE'] = 'stuffs_featuredphotos.tpl'; 
     134  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl'; 
    139135} 
    140136 
Note: See TracChangeset for help on using the changeset viewer.