Ignore:
Timestamp:
Sep 12, 2008, 4:17:35 AM (16 years ago)
Author:
rvelices
Message:
  • images.file categories.permalink old_permalinks.permalink - become binary
  • session security improvement: now the sessions are valid only for originating ip addr (with mask 255.255.0.0 to allow users behind load balancing proxies) -> stealing the session cookie is almost a non issue (with the exception of the 65536 machines in range)
  • metadata sync from the sync button does not overwrite valid data with empty metadata
  • other small fixes/enhancements:
    • added event get_category_image_orders
    • fix display issue with redirect.tpl (h1/h2 within h1)
    • fix known_script smarty function registration
    • query search form not submitted if q is empty
    • better admin css rules
    • some other minor changes (ws_core, rest_handler, functions_search...)
File:
1 edited

Legend:

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

    r2517 r2521  
    259259{
    260260  global $conf, $page;
    261  
    262   return array(
     261
     262  return trigger_event('get_category_preferred_image_orders',
     263    array(
    263264    array(l10n('default_sort'), '', true),
    264265    array(l10n('Average rate'), 'average_rate DESC', $conf['rate']),
     
    270271      l10n('Rank'),
    271272      'rank ASC',
    272       ('categories' == $page['section'] and !isset($page['flat']))
     273      ('categories' == @$page['section'] and !isset($page['flat']))
    273274      )
    274     );
     275    ));
    275276}
    276277
Note: See TracChangeset for help on using the changeset viewer.