fixed missing globals breaking health tests

This commit is contained in:
Petr Skoda
2010-09-17 09:30:09 +00:00
parent f3e5bf8642
commit 395a095ec9
+3
View File
@@ -104,6 +104,7 @@ STYLES;
function health_find_problems() {
global $OUTPUT;
echo $OUTPUT->heading(get_string('healthcenter'));
@@ -328,6 +329,8 @@ class problem_000008 extends problem_base {
return 'PHP: memory_limit cannot be controlled by Moodle';
}
function exists() {
global $CFG;
$oldmemlimit = @ini_get('memory_limit');
if(empty($oldmemlimit)) {
// PHP not compiled with memory limits, this means that it's