Ignore:
Timestamp:
Mar 12, 2007, 12:02:13 AM (17 years ago)
Author:
rub
Message:

Fix Mathias requests about French words.
Rename completely general tab into main tab.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/configuration.php

    r1884 r1894  
    4242if (!isset($_GET['section']))
    4343{
    44   $page['section'] = 'general';
     44  $page['section'] = 'main';
    4545}
    4646else
     
    4949}
    5050
    51 $general_checkboxes = array(
     51$main_checkboxes = array(
    5252    'email_admin_on_new_user',
    5353    'allow_user_registration',
     
    7373  switch ($page['section'])
    7474  {
    75     case 'general' :
     75    case 'main' :
    7676    {
    7777      if ( !url_is_remote($_POST['gallery_url']) )
     
    7979        array_push($page['errors'], $lang['conf_gallery_url_error']);
    8080      }
    81       foreach( $general_checkboxes as $checkbox)
     81      foreach( $main_checkboxes as $checkbox)
    8282      {
    8383        $_POST[$checkbox] = empty($_POST[$checkbox])?'false':'true';
     
    177177$page['tabsheet'] = array
    178178(
    179   'general' => array
     179  'main' => array
    180180   (
    181     'caption' => l10n('conf_general_title'),
    182     'url' => $conf_link.'general'
     181    'caption' => l10n('conf_main_title'),
     182    'url' => $conf_link.'main'
    183183   ),
    184184  'history' => array
     
    194194  'default' => array
    195195   (
    196     'caption' => l10n('conf_default'),
     196    'caption' => l10n('conf_display'),
    197197    'url' => $conf_link.'default'
    198198   )
     
    223223switch ($page['section'])
    224224{
    225   case 'general' :
     225  case 'main' :
    226226  {
    227227    $lock_yes = ($conf['gallery_locked']==true)?'checked="checked"':'';
     
    229229
    230230    $template->assign_block_vars(
    231       'general',
     231      'main',
    232232      array(
    233233        'GALLERY_LOCKED_YES'=>$lock_yes,
     
    241241        ));
    242242
    243     foreach( $general_checkboxes as $checkbox)
     243    foreach( $main_checkboxes as $checkbox)
    244244    {
    245245      $template->merge_block_vars(
    246           'general',
     246          'main',
    247247          array(
    248248            strtoupper($checkbox) => ($conf[$checkbox]==true)?$html_check:''
Note: See TracChangeset for help on using the changeset viewer.