Changeset 6613 for extensions/virtualAutoGrant/VAG_admin.php
- Timestamp:
- Jun 27, 2010, 10:37:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/virtualAutoGrant/VAG_admin.php
r6610 r6613 9 9 $infos = array(); 10 10 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,21 11 $vag = & $conf['virtual_AutoGrant']; 22 12 … … 25 15 if ( $sub ) { 26 16 $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 }31 17 if ( $user['id'] != $conf['webmaster_id'] and $nsp['grant_to_webmaster'] != $vag['grant_to_webmaster']) { 32 18 $nsp['grant_to_webmaster'] = $vag['grant_to_webmaster']; … … 45 31 array_push($infos, l10n('Your configuration is saved.')); 46 32 } 47 $vag = $nsp;33 $vag = array_merge($vag, $nsp); 48 34 } 49 35 $template->set_filenames( array('VAG_admin' => dirname(__FILE__).'/template/VAG_admin.tpl') );
Note: See TracChangeset
for help on using the changeset viewer.