"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/modules/config/attachment_types.php" between
mybb_1822.zip and mybb_1823.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

attachment_types.php  (mybb_1822):attachment_types.php  (mybb_1823)
skipping to change at line 645 skipping to change at line 645
admin_redirect('index.php?module=config-attachment_types'); admin_redirect('index.php?module=config-attachment_types');
} }
$plugins->run_hooks('admin_config_attachment_types_toggle_status'); $plugins->run_hooks('admin_config_attachment_types_toggle_status');
$update_array = array('enabled' => 1); $update_array = array('enabled' => 1);
$phrase = $lang->success_activated_attachment_type; $phrase = $lang->success_activated_attachment_type;
if($attachment_type['enabled'] == 1) if($attachment_type['enabled'] == 1)
{ {
$update_array['enabled'] = 0; $update_array['enabled'] = 0;
$phrase = $lang->success_activated_attachment_type; $phrase = $lang->success_deactivated_attachment_type;
} }
$plugins->run_hooks('admin_config_attachment_types_toggle_status_commit') ; $plugins->run_hooks('admin_config_attachment_types_toggle_status_commit') ;
$db->update_query('attachtypes', $update_array, "atid='{$atid}'"); $db->update_query('attachtypes', $update_array, "atid='{$atid}'");
$cache->update_attachtypes(); $cache->update_attachtypes();
// Log admin action // Log admin action
log_admin_action($atid, $attachment_type['extension'], $update_array['ena bled']); log_admin_action($atid, $attachment_type['extension'], $update_array['ena bled']);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)