From: moodler Date: Fri, 30 Apr 2004 04:50:41 +0000 (+0000) Subject: Can use $CFG->journal_showrecentactivity to hide recent activity for journals X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=58259e321721300ce9d6b32258654e81970d62f4;p=moodle.git Can use $CFG->journal_showrecentactivity to hide recent activity for journals --- diff --git a/mod/journal/lib.php b/mod/journal/lib.php index b75c5eebd3..5ef4c42122 100644 --- a/mod/journal/lib.php +++ b/mod/journal/lib.php @@ -1,6 +1,12 @@ journal_showrecentactivity)) { + set_config("journal_showrecentactivity", true); +} + + + // STANDARD MODULE FUNCTIONS ///////////////////////////////////////////////////////// function journal_user_outline($course, $user, $mod, $journal) { @@ -174,6 +180,10 @@ function journal_cron () { function journal_print_recent_activity($course, $isteacher, $timestart) { global $CFG; + if (empty($CFG->journal_showrecentactivity)) { // Don't even bother + return false; + } + $content = false; $journals = NULL;