Upgrading table to rename the context->aggregatelevel field which was

really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.
This commit is contained in:
moodler
2006-09-22 06:19:32 +00:00
parent b988fe5f94
commit aad2ba95d1
12 changed files with 83 additions and 71 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
$inmeta = 0;
if ($context->aggregatelevel == CONTEXT_COURSE) {
if ($context->contextlevel == CONTEXT_COURSE) {
$courseid = $context->instanceid;
if ($course = get_record('course', 'id', $courseid)) {
$inmeta = $course->metacourse;
@@ -79,7 +79,7 @@
/// Print the header and tabs
if ($context->aggregatelevel == CONTEXT_USER) {
if ($context->contextlevel == CONTEXT_USER) {
/// course header
if ($courseid!= SITEID) {
print_header("$fullname", "$fullname",