Changeset 530


Ignore:
Timestamp:
Sep 20, 2004, 11:10:17 PM (20 years ago)
Author:
z0rglub
Message:
  • change language keys
  • depending on PHP version and MySQL version, nullable fields might be not returned as key on query
  • deletion of call to deprecated synchronize_all_users function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r403 r530  
    9393    $query.= ' WHERE cat_id = '.$_GET['cat_id'];
    9494    mysql_query( $query );
    95     // resynchronize all users
    96     synchronize_all_users();
    9795  }
    9896
     
    115113$query.= ';';
    116114$category = mysql_fetch_array( mysql_query( $query ) );
     115// nullable fields
     116foreach (array('comment','dir') as $nullable)
     117{
     118  if (!isset($category[$nullable]))
     119  {
     120    $category[$nullable] = '';
     121  }
     122}
    117123
    118124// Navigation path
     
    128134
    129135//----------------------------------------------------- template initialization
    130 
    131136$template->assign_vars(array(
    132137  'CATEGORIES_NAV'=>$navigation,
     
    143148  'L_STORAGE'=>$lang['storage'],
    144149  'L_EDIT_COMMENT'=>$lang['comment'],
    145   'L_EDIT_STATUS'=>$lang['conf_general_access'],
     150  'L_EDIT_STATUS'=>$lang['conf_access'],
    146151  'L_EDIT_STATUS_INFO'=>$lang['cat_access_info'],
    147   'L_ACCESS_FREE'=>$lang['conf_general_access_1'],
    148   'L_ACCESS_RESTRICTED'=>$lang['conf_general_access_2'],
     152  'L_ACCESS_FREE'=>$lang['free'],
     153  'L_ACCESS_RESTRICTED'=>$lang['restricted'],
    149154  'L_EDIT_LOCK'=>$lang['cat_lock'],
    150155  'L_EDIT_LOCK_INFO'=>$lang['cat_lock_info'],
Note: See TracChangeset for help on using the changeset viewer.