Changeset 602 for trunk/category.php


Ignore:
Timestamp:
Nov 13, 2004, 2:43:53 PM (19 years ago)
Author:
plg
Message:
  • admin/cat_options page added : manage options for the whole categories tree (uploadable, commentable). status and visible will be soon added
  • admin.php : $conf_link var to avoid lines longer than 79 characters
  • config.upload_available configuration parameter disappear : it's simpler to manage with cat_options
  • config.show_comments idem : new column categories.commentable, each categories can be commentable or not
  • categories.site_id becomes a nullable column : a virtual category does belong to no site
  • function display_select_categories has a new argument : $CSS_classes array to optionnaly assign a CSS class to each category in the select field
  • added informations in include/config.inc.php for setting default value of :
  • categories.visible
  • categories.status
  • categories.uploadable
  • categories.commentable
  • 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best rated and most visited categories
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/category.php

    r593 r602  
    296296{
    297297  // upload a picture in the category
    298   if ( is_numeric( $page['cat'] )
    299        and $page['cat_site_id'] == 1
    300        and $conf['upload_available']
    301        and $page['cat_uploadable'] )
     298  if (is_numeric($page['cat'])
     299      and $page['cat_site_id'] == 1
     300      and $page['cat_dir'] != ''
     301      and $page['cat_uploadable'])
    302302  {
    303303    $url = PHPWG_ROOT_PATH.'upload.php?cat='.$page['cat'];
Note: See TracChangeset for help on using the changeset viewer.