Changeset 2091 for trunk/include


Ignore:
Timestamp:
Sep 14, 2007, 1:30:46 AM (17 years ago)
Author:
rvelices
Message:
  • merge content of layout.css and popuphelp.css (very few lines) into existing css -> faster page loading the first time (avoid 2 http requests)
  • optimized sql for $confdisplay_fromto in category_cats.inc.php
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/category_cats.inc.php

    r2079 r2091  
    164164    MAX(date_creation) AS date_creation_max
    165165  FROM '.IMAGE_CATEGORY_TABLE.'
    166     INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
    167       ON category_id = cat_id and user_id = '.$user['id'].'
    168166    INNER JOIN '.IMAGES_TABLE.' ON image_id = id
    169   WHERE category_id IN ('.implode(',', $category_ids).') 
     167  WHERE category_id IN ('.implode(',', $category_ids).')
    170168'.get_sql_condition_FandF
    171169  (
     
    173171      (
    174172        'visible_categories' => 'category_id',
    175         'visible_images' => 'image_id'
     173        'visible_images' => 'id'
    176174      ),
    177175    'AND'
     
    187185        );
    188186    }
    189     // echo '<pre>'; print_r($dates_of_category); echo '</pre>';
    190187  }
    191188}
     
    264261                                  ),
    265262          'DESCRIPTION' =>
    266             trigger_event('render_category_literal_description', 
    267               trigger_event('render_category_description', 
     263            trigger_event('render_category_literal_description',
     264              trigger_event('render_category_description',
    268265                @$category['comment'])),
    269266          'NAME'  => $name,
     
    277274          $from = $dates_of_category[ $category['id'] ]['from'];
    278275          $to   = $dates_of_category[ $category['id'] ]['to'];
    279        
     276
    280277          if (!empty($from))
    281278          {
    282279            $info = '';
    283          
     280
    284281            if ($from == $to)
    285282            {
Note: See TracChangeset for help on using the changeset viewer.