|
@@ -951,7 +951,7 @@ function AdminLogs()
|
|
|
$log_functions = array(
|
|
|
'errorlog' => array('ManageErrors.php', 'ViewErrorLog'),
|
|
|
'adminlog' => array('Modlog.php', 'ViewModlog'),
|
|
|
- 'modlog' => array('Modlog.php', 'ViewModlog'),
|
|
|
+ 'modlog' => array('Modlog.php', 'ViewModlog', 'disabled' => !in_array('ml', $context['admin_features'])),
|
|
|
'banlog' => array('ManageBans.php', 'BanLog'),
|
|
|
'spiderlog' => array('ManageSearchEngines.php', 'SpiderLogs'),
|
|
|
'tasklog' => array('ManageScheduledTasks.php', 'TaskLog'),
|
|
@@ -960,7 +960,7 @@ function AdminLogs()
|
|
|
|
|
|
call_integration_hook('integrate_manage_logs', array(&$log_functions));
|
|
|
|
|
|
- $sub_action = isset($_REQUEST['sa']) && isset($log_functions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'errorlog';
|
|
|
+ $sub_action = isset($_REQUEST['sa']) && isset($log_functions[$_REQUEST['sa']]) && empty($log_functions[$_REQUEST['sa']]['disabled']) ? $_REQUEST['sa'] : 'errorlog';
|
|
|
// If it's not got a sa set it must have come here for first time, pretend error log should be reversed.
|
|
|
if (!isset($_REQUEST['sa']))
|
|
|
$_REQUEST['desc'] = true;
|