Ignore:
Timestamp:
Jun 27, 2010, 10:37:23 PM (14 years ago)
Author:
vdigital
Message:

Fix: some issues with globals and access by ref
Next: Add missing translations + Set "who can read" on non API cases

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/virtualAutoGrant/VAG_admin.php

    r6610 r6613  
    99$infos = array();
    1010
    11         // '' => 1,
    12         // 'set_private_by_API' => 1,
    13         // 'grant_to_creator' => 1,
    14         // 'grant_to_webmaster' => 1,
    15         // 'set_who_can_see' => 1,
    16         // 'webmaster_set_who_can_see' => 1,
    17         // 'ignore_who_can_see_on_private' => 1,
    18         // 'Dir' => VAG_DIR,
    19         // 'Path' => VAG_PATH,
    20         // 'Ver' => VAG_VER,
    2111$vag = & $conf['virtual_AutoGrant'];
    2212
     
    2515if ( $sub ) {
    2616  $nsp = array_merge($vag, $_POST);
    27         if ( $nsp['set_private'] == 1 and $nsp['set_private_by_API'] == 0 ) {
    28     $nsp['set_private_by_API'] = 1;
    29     array_push($infos, l10n('New virtual categories from external API will be forced to "private" due to previous choice.'));
    30   }
    3117  if ( $user['id'] != $conf['webmaster_id'] and $nsp['grant_to_webmaster'] != $vag['grant_to_webmaster']) {
    3218    $nsp['grant_to_webmaster'] = $vag['grant_to_webmaster'];
     
    4531        array_push($infos, l10n('Your configuration is saved.'));
    4632  }
    47   $vag = $nsp;
     33  $vag = array_merge($vag, $nsp);
    4834}
    4935$template->set_filenames( array('VAG_admin' => dirname(__FILE__).'/template/VAG_admin.tpl') );
Note: See TracChangeset for help on using the changeset viewer.