Changeset 1308 for trunk/admin


Ignore:
Timestamp:
May 15, 2006, 10:53:08 PM (19 years ago)
Author:
plg
Message:

merge -r1306:1307 from branch 1.6 into trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_global.php

    r1121 r1308  
    206206    'L_SUBMIT'=>$lang['submit'],
    207207
    208     'U_COLS'=>$base_url.get_query_string_diff(array('cols')),
    209208    'U_DISPLAY'=>$base_url.get_query_string_diff(array('display')),
    210209
     
    340339// +-----------------------------------------------------------------------+
    341340
    342 $page['cols'] = !empty($_GET['cols']) ? intval($_GET['cols']) : 5;
    343 
    344341// how many items to display on this page
    345342if (!empty($_GET['display']))
     
    383380  {
    384381    $template->assign_block_vars('thumbnails', array());
    385     // first line
    386     $template->assign_block_vars('thumbnails.line', array());
    387     // current row displayed
    388     $row_number = 0;
    389382  }
    390383
     
    394387
    395388    $template->assign_block_vars(
    396       'thumbnails.line.thumbnail',
     389      'thumbnails.thumbnail',
    397390      array(
    398391        'ID' => $row['id'],
     
    402395        )
    403396      );
    404 
    405     // create a new line ?
    406     if (++$row_number == $page['cols'])
    407     {
    408     $template->assign_block_vars('thumbnails.line', array());
    409     $row_number = 0;
    410     }
    411397  }
    412398}
Note: See TracChangeset for help on using the changeset viewer.