Changeset 861 in ExiteCMS for trunk/downloads.php
- Timestamp:
- 10/02/07 22:23:07 (5 years ago)
- File:
-
- 1 edited
-
trunk/downloads.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/downloads.php
r834 r861 43 43 $variables = array(); 44 44 45 define('DOWNLOAD_LIMIT', 1 5);45 define('DOWNLOAD_LIMIT', 10); 46 46 $variables['download__limit'] = DOWNLOAD_LIMIT; 47 47 … … 79 79 $variables['subcats'] = false; 80 80 $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 } 81 86 } else { 82 87 // get the selected category, and all sub-categories of the requested download category
Note: See TracChangeset
for help on using the changeset viewer.
