Changeset 20032 for extensions/Piwecard/admin/admin_authorizations.php
- Timestamp:
- Jan 10, 2013, 12:59:07 AM (11 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/admin/admin_authorizations.php
r20013 r20032 7 7 8 8 $template->set_filenames(array( 9 'plugin_admin_content' => ECARD_ROOT.'/admin/template/admin_ manage.tpl',9 'plugin_admin_content' => ECARD_ROOT.'/admin/template/admin_authorizations.tpl', 10 10 'double_select' => 'double_select.tpl' 11 11 )); … … 15 15 foreach ($_POST['cat_true'] as $cat) 16 16 unset($piwecard->my_config['selected_cats'][array_search($cat, $piwecard->my_config['selected_cats'])]); 17 $piwecard->s ave_config();17 $piwecard->set_config(); 18 18 } 19 19 … … 29 29 usort($piwecard->my_config['selected_cats'], 'global_rank_compare'); 30 30 31 $piwecard->s ave_config();31 $piwecard->set_config(); 32 32 } 33 33 34 34 if (isset($_POST['submit'])) { 35 $piwecard->my_config['authoriz ations'] = $_POST['ecard_authorizations'];36 $piwecard->s ave_config();35 $piwecard->my_config['authorized_cats'] = $_POST['ecard_authorized_cats']; 36 $piwecard->set_config(); 37 37 array_push($page['infos'], l10n('ecard_admin_saveOK')); 38 38 } … … 76 76 77 77 $template->assign('ecard', array( 78 'all_cats_checked' => (($piwecard->my_config['authoriz ations'] == 'all_cats') ? 'checked="checked"' : ''),79 'selected_cats_checked' => (($piwecard->my_config['authoriz ations'] == 'selected_cats') ? 'checked="checked"' : ''),80 'user_cats_checked' => (($piwecard->my_config['authoriz ations'] == 'user_cats') ? 'checked="checked"' : ''),78 'all_cats_checked' => (($piwecard->my_config['authorized_cats'] == 'all') ? 'checked="checked"' : ''), 79 'selected_cats_checked' => (($piwecard->my_config['authorized_cats'] == 'selected') ? 'checked="checked"' : ''), 80 'user_cats_checked' => (($piwecard->my_config['authorized_cats'] == 'user') ? 'checked="checked"' : ''), 81 81 ) 82 82 ); … … 84 84 $template->assign(array( 85 85 'F_ACTION' => '', 86 'L_CAT_OPTIONS_TRUE' => l10n(' selected_cats'),87 'L_CAT_OPTIONS_FALSE' => l10n(' non_selected_cats'),86 'L_CAT_OPTIONS_TRUE' => l10n('piwecard_selected_cats'), 87 'L_CAT_OPTIONS_FALSE' => l10n('piwecard_non_selected_cats'), 88 88 ) 89 89 );
Note: See TracChangeset
for help on using the changeset viewer.