[UPDATE] Remove config disable check popup from admins

This commit is contained in:
Sebastian Grewe 2015-07-15 16:04:57 +02:00
parent b9ab718d71
commit 5ed89f94a2

View File

@ -99,13 +99,6 @@ if (count(@$_SESSION['last_ip_pop']) == 2) {
}
}
// version check and config check if not disabled
if (@$_SESSION['USERDATA']['is_admin'] && $user->isAdmin(@$_SESSION['USERDATA']['id'])) {
if (!@$config['skip_config_tests'] && @$_GET['action'] != 'setup') {
$_SESSION['POPUP'][] = array('CONTENT' => "You haven't turned off config checks, visit the <b><a href='?page=admin&action=setup'>setup page</a></b> for further information.", 'DISMISS' => 'yes', 'ID' => 'lastlogin', 'TYPE' => 'alert alert-info');
}
}
// Create our pages array from existing files
if (is_dir(INCLUDE_DIR . '/pages/')) {
foreach (glob(INCLUDE_DIR . '/pages/*.inc.php') as $filepath) {