From 8ad22079655e7f5400247c0b8bc1734a3664440d Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 30 Sep 2006 21:02:09 +0000 Subject: [PATCH] fixed Fatal error: Call to undefined function: print_recent_activity() when adding Recent Activity as a sticky block MDL-6437 and blocks block database MDL-5931 --- lib/blocklib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blocklib.php b/lib/blocklib.php index 480794d6e4..d9140db704 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -16,7 +16,7 @@ define('BLOCKS_PINNED_FALSE',1); define('BLOCKS_PINNED_BOTH',2); require_once($CFG->libdir.'/pagelib.php'); - +require_once($CFG->dirroot.'/course/lib.php'); // needed to solve all those: Call to undefined function: print_recent_activity() when adding Recent Activity // Returns false if this block is incompatible with the current version of Moodle. function block_is_compatible($blockname) { -- 2.39.5