Changeset 10007
- Timestamp:
- Apr 3, 2011, 10:58:20 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/admin/plugins_list.php
r8728 r10007 39 39 if (isset($_GET['action']) and isset($_GET['plugin'])) 40 40 { 41 check_pwg_token(); 41 if (in_array($_GET['action'], array('install', 'uninstall')) AND !is_webmaster()) 42 { 43 array_push($page['errors'], l10n('Webmaster status is required.')); 44 } 45 else 46 { 47 check_pwg_token(); 42 48 43 $page['errors'] = $plugins->perform_action($_GET['action'], $_GET['plugin']);49 $page['errors'] = $plugins->perform_action($_GET['action'], $_GET['plugin']); 44 50 45 if (empty($page['errors'])) 46 { 47 if ($_GET['action'] == 'activate' or $_GET['action'] == 'deactivate') 51 if (empty($page['errors'])) 48 52 { 49 $template->delete_compiled_templates(); 53 if ($_GET['action'] == 'activate' or $_GET['action'] == 'deactivate') 54 { 55 $template->delete_compiled_templates(); 56 } 57 redirect($base_url); 50 58 } 51 redirect($base_url);52 59 } 53 60 }
Note: See TracChangeset
for help on using the changeset viewer.