From: martin Date: Sat, 10 Aug 2002 13:50:38 +0000 (+0000) Subject: Tweak teacher colour X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=87ffed0d9854f03bc818630a8cc690e88ff9a61a;p=moodle.git Tweak teacher colour --- diff --git a/course/lib.php b/course/lib.php index 18af8e799f..e8d1eadbea 100644 --- a/course/lib.php +++ b/course/lib.php @@ -12,7 +12,9 @@ $COURSE_SECTION = array ( "topics" => "topic" ); -$COURSE_MAX_LOG_DISPLAY = 150; // days +$COURSE_MAX_LOG_DISPLAY = 150; // days + +$COURSETEACHERCOLOR = "#990000"; // To hilight certain items function print_log_selector_form($course, $selecteduser=0, $selecteddate="today") { @@ -257,7 +259,7 @@ function print_recent_activity($course) { // This function trawls through the logs looking for // anything new since the user's last login - global $CFG, $USER; + global $CFG, $USER, $COURSETEACHERCOLOR; if (! $USER->lastlogin ) { echo "

Welcome to the course! Here you will find a list of what's new since your last login.

"; @@ -359,7 +361,7 @@ function print_recent_activity($course) { if (!isteacher($course->id)) { continue; } else { - $teacherpost = "COLOR=#666666"; + $teacherpost = "COLOR=$COURSETEACHERCOLOR"; } } }