Ignore:
Timestamp:
May 1, 2010, 12:38:17 AM (14 years ago)
Author:
plg
Message:

bug 1637: make the privacy level the same everywher, use "who can see this photo?"
instead of "minimum privacy level".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/element_set_unit.php

    r5955 r6025  
    139139ksort($month_list);
    140140
    141 $tpl_options = array();
    142 foreach ($conf['available_permission_levels'] as $level)
    143 {
    144   $tpl_options[$level] = l10n( sprintf('Level %d', $level) );
    145 }
    146 
    147141$template->assign(
    148142  array(
     
    157151    'F_ACTION'=>$base_url.get_query_string_diff(array()),   
    158152    'month_list' => $month_list,
    159     'level_options' => $tpl_options
     153    'level_options' => get_privacy_level_options(),
    160154    )
    161155  );
     
    246240        'NAME' => !empty($row['name'])?$row['name']:'',
    247241        'AUTHOR' => !empty($row['author'])?$row['author']:'',
    248         'LEVEL' => !empty($row['level'])?$row['level']:'',
     242        'LEVEL' => !empty($row['level'])?$row['level']:'0',
    249243        'DESCRIPTION' => !empty($row['comment'])?$row['comment']:'',
    250244        'DATE_CREATION_YEAR' => $year,
Note: See TracChangeset for help on using the changeset viewer.