Ignore:
Timestamp:
Nov 2, 2009, 2:23:52 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Bug corrections

Location:
extensions/event_cats/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/ec_conf.inc.php

    r4092 r4171  
    3333 _ the number of digits when creating a new code automatically
    3434   ($ec_conf[2] <=> read_ec_conf('auto_code_dg_nb')) ;
     35 _ whether categories are displayed "cat / under_cat / ..." or
     36   "cat <CR LF> - under_cat <CR LF> - ..." ($ec_conf[3] <=>
     37   read_ec_conf('cat_display')) ;
    3538 _ whether the "how to" banner has already been displayed or not
    36    ($ec_conf[3] <=> read_ec_conf('howto')) ;
     39   ($ec_conf[4] <=> read_ec_conf('howto')) ;
    3740 _ what to do in case an unknown code is used with "autolog" parameter
    38    ($ec_conf[4] <=> read_ec_conf('unknown_code')) :
     41   ($ec_conf[5] <=> read_ec_conf('unknown_code')) :
    3942   0 : nothing ("goto" home page, index.php (not logged in of course)) ;
    4043   1 : redirected to "access denied" page ;
    4144   2 : redirected to an Additional Page precised below.
    4245 _ the id of the Additional Page which must be used in case of usage of an
    43    unknow code ($ec_conf[5] <=> read_ec_conf('unknown_code_ap_id')).
     46   unknow code ($ec_conf[6] <=> read_ec_conf('unknown_code_ap_id')).
    4447*****************************************************************************/
    4548
     
    5558}
    5659else {
    57   $ec_conf = explode(',' , '0,1,10,0,0,0');
     60  $ec_conf = explode(',' , '0,1,10,0,0,0,0');
    5861  change_ec_conf('activated', 0);
    5962}
     
    8285      $ec_conf[2] = $v;
    8386    break;
    84     case 'howto':
     87    case 'cat_display':
    8588      $ec_conf[3] = $v;
    8689    break;
    87     case 'unknown_code':
     90    case 'howto':
    8891      $ec_conf[4] = $v;
    8992    break;
     93    case 'unknown_code':
     94      $ec_conf[5] = $v;
     95    break;
    9096    case 'unknown_code_ap_id':
    91       $ec_conf[5] = $v;
     97      $ec_conf[6] = $v;
    9298    break;
    9399    default: return false;
     
    115121    case 'dup_allow'         : return $ec_conf[1];
    116122    case 'auto_code_dg_nb'   : return $ec_conf[2];
    117     case 'howto'             : return $ec_conf[3];
    118     case 'unknown_code'      : return $ec_conf[4];
    119     case 'unknown_code_ap_id': return $ec_conf[5];
     123    case 'cat_display'       : return $ec_conf[3];
     124    case 'howto'             : return $ec_conf[4];
     125    case 'unknown_code'      : return $ec_conf[5];
     126    case 'unknown_code_ap_id': return $ec_conf[6];
    120127    default                  : return false;
    121128  }
  • extensions/event_cats/include/evntcats_main_funcs.inc.php

    r4170 r4171  
    330330     SELECT id,name,uppercats,global_rank
    331331     FROM '.CATEGORIES_TABLE,
    332    $c, 'category_options', true);
     332   $c, 'category_options', (read_ec_conf('cat_display') == '0'));
    333333  $ec_lists['categories'] = $template->smarty->_tpl_vars['category_options'];
    334334 
Note: See TracChangeset for help on using the changeset viewer.