Changeset 1278


Ignore:
Timestamp:
Apr 26, 2006, 11:08:44 PM (18 years ago)
Author:
plg
Message:

merge -r1276:1277 from branch-1_6 to trunk (bug 228 fixed)

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r1121 r1278  
    15701570    'name' => $category_name,
    15711571    'rank' => ++$current_rank,
    1572     'commentable' => $conf['newcat_default_commentable'],
     1572    'commentable' => boolean_to_string($conf['newcat_default_commentable']),
    15731573    'uploadable' => 'false',
    15741574    );
     
    15951595    else
    15961596    {
    1597       $insert{'visible'} = $conf['newcat_default_visible'];
     1597      $insert{'visible'} = boolean_to_string($conf['newcat_default_visible']);
    15981598    }
    15991599
     
    16071607    else
    16081608    {
    1609       $insert{'status'} = $conf['newcat_default_status'];
     1609      $insert{'status'} = boolean_to_string($conf['newcat_default_status']);
    16101610    }
    16111611  }
    16121612  else
    16131613  {
    1614     $insert{'visible'} = $conf['newcat_default_visible'];
    1615     $insert{'status'} = $conf['newcat_default_status'];
     1614    $insert{'visible'} = boolean_to_string($conf['newcat_default_visible']);
     1615    $insert{'status'} = boolean_to_string($conf['newcat_default_status']);
    16161616    $insert{'global_rank'} = $insert{'rank'};
    16171617  }
  • trunk/admin/site_update.php

    r1250 r1278  
    248248        'name'        => str_replace('_', ' ', $dir),
    249249        'site_id'     => $site_id,
    250         'commentable' => $conf['newcat_default_commentable'],
     250        'commentable' =>
     251          boolean_to_string($conf['newcat_default_commentable']),
    251252        'uploadable'  => $site_is_remote
    252253          ? false
    253           : $conf['newcat_default_uploadable'],
    254         'status'      => $conf{'newcat_default_status'},
    255         'visible'     => $conf{'newcat_default_visible'},
     254          : boolean_to_string($conf['newcat_default_uploadable']),
     255        'status'      => boolean_to_string($conf{'newcat_default_status'}),
     256        'visible'     => boolean_to_string($conf{'newcat_default_visible'}),
    256257        );
    257258
  • trunk/include/config_default.inc.php

    r1221 r1278  
    111111// newcat_default_commentable : at creation, must a category be commentable
    112112// or not ?
    113 $conf['newcat_default_commentable'] = 'true';
     113$conf['newcat_default_commentable'] = true;
    114114
    115115// newcat_default_uploadable : at creation, must a category be uploadable or
    116116// not ?
    117 $conf['newcat_default_uploadable'] = 'false';
     117$conf['newcat_default_uploadable'] = false;
    118118
    119119// newcat_default_visible : at creation, must a category be visible or not ?
    120120// Warning : if the parent category is invisible, the category is
    121121// automatically create invisible. (invisible = locked)
    122 $conf['newcat_default_visible'] = 'true';
     122$conf['newcat_default_visible'] = true;
    123123
    124124// newcat_default_status : at creation, must a category be public or private
     
    128128
    129129// newuser_default_enabled_high : at creation, must a user with enabled_high or not
    130 $conf['newuser_default_enabled_high'] = 'true';
     130$conf['newuser_default_enabled_high'] = true;
    131131
    132132// level_separator : character string used for separating a category level
Note: See TracChangeset for help on using the changeset viewer.