Ignore:
Timestamp:
Jul 13, 2012, 3:12:14 PM (12 years ago)
Author:
patdenice
Message:
 
File:
1 edited

Legend:

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

    r12453 r16690  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    44
    5 global $page, $user, $conf, $template;
     5global $page, $user, $conf;
    66
    77$page_save = $page;
    8 $tpl_save = $template->get_template_vars('THUMBNAILS');
    98
    109if (script_basename() == 'picture'
     
    5352$page['section'] = 'category';
    5453
     54$tpl_thumbnails_var = array();
     55$pwg_stuffs_tpl_thumbnails_var = & $tpl_thumbnails_var;
    5556include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
    5657
    57 if (!empty($tpl_thumbnails_var))
     58if (!empty($pwg_stuffs_tpl_thumbnails_var))
    5859{
    59   $block['thumbnails'] = $tpl_thumbnails_var;
     60  $block['thumbnails'] = $pwg_stuffs_tpl_thumbnails_var;
     61  $block['derivative_params'] = ImageStdParams::get_by_type(IMG_THUMB);
    6062  $block['TEMPLATE'] = 'stuffs_thumbnails.tpl';
    6163}
    6264
    6365$page = $page_save;
    64 $template->assign('THUMBNAILS', $tpl_save);
    6566
    6667?>
Note: See TracChangeset for help on using the changeset viewer.