Ignore:
Timestamp:
Jan 15, 2013, 12:41:50 AM (12 years ago)
Author:
julien1311
Message:

[piwecard] several improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Piwecard/admin/admin_permissions.php

    r20088 r20162  
    3636}
    3737
    38 if (isset($_POST['submit'])) { 
     38if (isset($_POST['submit'])) {
    3939        $piwecard->config['authorized_cats'] = $_POST['ecard_authorized_cats'];
     40        if ($_POST['ecard_authorized_cats'] == 'user')
     41                $piwecard->config['user_cats_case_sensitive'] = ((isset($_POST['ecard_user_cats_case_sensitive']) && $_POST['ecard_user_cats_case_sensitive'] == '1') ? true : false);
    4042        $piwecard->set_config();
    4143        array_push($page['infos'], l10n('Information data registered in database'));
     
    8385                                                                'selected_cats_checked' => (($piwecard->config['authorized_cats'] == 'selected') ? 'checked="checked"' : ''),
    8486                                                                'user_cats_checked' => (($piwecard->config['authorized_cats'] == 'user') ? 'checked="checked"' : ''),
     87                                                                'user_cats_case_sensitive' => (($piwecard->config['user_cats_case_sensitive']) ? 'checked="checked"' : ''),
    8588                                                        )
    8689);
Note: See TracChangeset for help on using the changeset viewer.