MDL-10275 added fatal PHP config setting test on each page, replaces some tests done in installer

This commit is contained in:
skodak
2009-02-01 13:37:42 +00:00
parent b3d960e64a
commit fbf2c91e43
5 changed files with 27 additions and 17 deletions
+1 -3
View File
@@ -244,9 +244,7 @@ function admin_critical_warnings_present() {
if (!isset($SESSION->admin_critical_warning)) {
$SESSION->admin_critical_warning = 0;
if (ini_get_bool('register_globals')) {
$SESSION->admin_critical_warning = 1;
} else if (is_dataroot_insecure(true) === INSECURE_DATAROOT_ERROR) {
if (is_dataroot_insecure(true) === INSECURE_DATAROOT_ERROR) {
$SESSION->admin_critical_warning = 1;
}
}