Changeset 2515 for trunk/include


Ignore:
Timestamp:
Sep 10, 2008, 3:16:13 AM (16 years ago)
Author:
rvelices
Message:
  • fix undefined template vars U_LOST_PASSWORD (menubar), F_ACTION (extend_for_templates) and F_C13Y_ACTION (check_integrity)
  • normalized some template variable names between category thumbnails and thumbnails (take advantage of full template change with smarty and do it now)
Location:
trunk/include
Files:
3 edited

Legend:

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

    r2433 r2515  
    3333  $query = '
    3434SELECT
    35   id, name, permalink, representative_picture_id, comment, nb_images, uppercats,
    36   date_last, max_date_last, count_images, count_categories, global_rank
    37   FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
     35  c.*, nb_images, date_last, max_date_last, count_images, count_categories
     36  FROM '.CATEGORIES_TABLE.' c INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
    3837  ON id = cat_id and user_id = '.$user['id'].'
    3938  WHERE date_last >= SUBDATE(
     
    5554  $query = '
    5655SELECT
    57   id, name, permalink, representative_picture_id, comment, nb_images, uppercats,
    58   date_last, max_date_last, count_images, count_categories
    59   FROM '.CATEGORIES_TABLE.' INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
     56  c.*, nb_images, date_last, max_date_last, count_images, count_categories
     57  FROM '.CATEGORIES_TABLE.' c INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.'
    6058  ON id = cat_id and user_id = '.$user['id'].'
    6159  WHERE id_uppercat '.
     
    246244          'ID'    => $category['id'],
    247245          'TN_SRC'   => $thumbnail_src_of[$category['representative_picture_id']],
    248           'ALT'   => strip_tags($category['name']),
    249           'ICON'  => $icon_ts,
     246          'TN_ALT'   => strip_tags($category['name']),
     247          'ICON_TS'  => $icon_ts,
    250248
    251249          'URL'   => make_index_url(
  • trunk/include/category_default.inc.php

    r2299 r2515  
    108108    array(
    109109      'ID'            => $row['id'],
    110       'IMAGE'         => $thumbnail_url,
    111       'IMAGE_ALT'     => $row['file'],
    112       'IMAGE_TITLE'   => get_thumbnail_title($row),
    113       'IMAGE_TS'      => get_icon($row['date_available']),
    114       'U_IMG_LINK'    => $url,
     110      'TN_SRC'         => $thumbnail_url,
     111      'TN_ALT'     => $row['file'],
     112      'TN_TITLE'   => get_thumbnail_title($row),
     113      'ICON_TS'      => get_icon($row['date_available']),
     114      'URL'    => $url,
    115115    );
    116116
     
    148148    }
    149149
    150     $tpl_var['ELEMENT_NAME'] = $name;
     150    $tpl_var['NAME'] = $name;
    151151  }
    152152
  • trunk/include/menubar.inc.php

    r2488 r2515  
    267267        array(
    268268          'U_LOGIN' => get_root_url().'identification.php',
     269          'U_LOST_PASSWORD' => get_root_url().'password.php',
    269270          'AUTHORIZE_REMEMBERING' => $conf['authorize_remembering']
    270271        )
Note: See TracChangeset for help on using the changeset viewer.