Ignore:
Timestamp:
Nov 24, 2013, 6:09:57 PM (11 years ago)
Author:
mistic100
Message:

very big update for Piwigo 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/admin/sets.php

    r24421 r25678  
    1919    array_push($where_clauses, 'username LIKE "%'.$_POST['username'].'%"');
    2020  }
    21  
     21
    2222  if (!empty($_POST['name']))
    2323  {
    2424    array_push($where_clauses, 'name LIKE "%'.$_POST['name'].'%"');
    2525  }
    26  
     26
    2727  $order_by = $_POST['order_by'].' '.$_POST['direction'];
    2828}
     
    3131// get sets
    3232$query = '
    33 SELECT 
     33SELECT
    3434    c.*,
    3535    u.'.$conf['user_fields']['username'].' AS username
     
    4646{
    4747  $template->append('sets', array(
    48     'NAME' => trigger_event('render_category_name', $row['name']),
     48    'NAME' => trigger_change('render_category_name', $row['name']),
    4949    'NB_IMAGES' => $row['nb_images'],
    5050    'DATE_CREATION' => format_date($row['date_creation'], true),
     
    7474  'direction_options' => $page['direction_items'],
    7575  'direction_selected' => isset($_POST['direction']) ? $_POST['direction'] : '',
    76  
     76
    7777  'F_USERNAME' => @htmlentities($_POST['username'], ENT_COMPAT, 'UTF-8'),
    7878  'F_NAME' => @htmlentities($_POST['name'], ENT_COMPAT, 'UTF-8'),
     
    8282
    8383$template->set_filename('user_collections', realpath(USER_COLLEC_PATH . 'admin/template/sets.tpl'));
    84 
    85 ?>
Note: See TracChangeset for help on using the changeset viewer.