Ignore:
Timestamp:
Jul 1, 2011, 3:19:35 PM (13 years ago)
Author:
mistic100
Message:

feature:2317 move order config to Admin->Config->Options
new GUI interface for simple paterns
in GUI, order_by and order_by_inside_category are merged (not un DB)
users can define special paterns with $conforder_by_custom and $conforder_by_inside_category_custom

File:
1 edited

Legend:

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

    r11511 r11587  
    107107  @include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR. 'config/config.inc.php');
    108108}
     109
     110// that's for migration from 2.2, will be deprecated in 2.4
     111if (isset($conf['order_by']))
     112{
     113  $conf['order_by_custom'] = $conf['order_by'];
     114}
     115if (isset($conf['order_by_inside_category']))
     116{
     117  $conf['order_by_inside_category_custom'] = $conf['order_by_inside_category'];
     118}
     119
    109120include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php');
    110121
     
    143154
    144155load_plugins();
     156
     157// users can have defined a custom order pattern, incompatible with GUI form
     158if (isset($conf['order_by_custom']))
     159{
     160  $conf['order_by'] = $conf['order_by_custom'];
     161}
     162if (isset($conf['order_by_inside_category_custom']))
     163{
     164  $conf['order_by_inside_category'] = $conf['order_by_inside_category_custom'];
     165}
    145166
    146167include(PHPWG_ROOT_PATH.'include/user.inc.php');
Note: See TracChangeset for help on using the changeset viewer.