Ignore:
Timestamp:
Feb 18, 2011, 5:15:58 PM (13 years ago)
Author:
patdenice
Message:

Permalink accept special chars.
Bug correction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/admin/config.inc.php

    r9273 r9275  
    88if (isset($_POST['submit']))
    99{
     10  if (!$conf['additional_pages']['user_perm'] and isset($_POST['user_perm']))
     11  {
     12    pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET users = "guest,generic,normal" WHERE users IS NULL;');
     13  }
     14  if ($conf['additional_pages']['user_perm'] and !isset($_POST['user_perm']))
     15  {
     16    pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET users = NULL;');
     17  }
     18  if ($conf['additional_pages']['group_perm'] and !isset($_POST['group_perm']))
     19  {
     20    pwg_query('UPDATE '.ADD_PAGES_TABLE.' SET groups = NULL;');
     21  }
     22
    1023  $params = array('show_home', 'group_perm', 'user_perm');
    1124
Note: See TracChangeset for help on using the changeset viewer.