Changeset 861 in ExiteCMS for trunk/downloads.php


Ignore:
Timestamp:
10/02/07 22:23:07 (5 years ago)
Author:
hverton
Message:

moved more templates to the template include directory
download panel had problems displaying an odd number of categories
make more modules xhtml compliant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downloads.php

    r834 r861  
    4343$variables = array(); 
    4444 
    45 define('DOWNLOAD_LIMIT', 15); 
     45define('DOWNLOAD_LIMIT', 10); 
    4646$variables['download__limit'] = DOWNLOAD_LIMIT; 
    4747 
     
    7979    $variables['subcats'] = false; 
    8080    $result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_parent='0' AND ".groupaccess('download_cat_access')." ORDER BY download_cat_name"); 
     81    if ($result) { 
     82        // any downloads in the 'root' are public, and ordered by download_id DESC, by default! 
     83        $variables['parent'] = array('download_cat_access' => 0, 'download_cat_sorting' => 'download_id DESC');  
     84        $cat_id = 0; 
     85    } 
    8186} else { 
    8287    // get the selected category, and all sub-categories of the requested download category 
Note: See TracChangeset for help on using the changeset viewer.