From 0dbc56ee8b36a028d1915f8a1f0e2ea0840a938c Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 4 Feb 2008 21:12:45 +0000 Subject: [PATCH] MDL-7734 fixed global $COURSE --- lib/weblib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 37abd3b4bc4..adbbdf7be9b 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -5094,11 +5094,11 @@ function editorhelpbutton(){ */ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=false, $text='', $return=false, $imagetext='') { - global $CFG, $course; + global $CFG, $COURSE; // fix for MDL-7734 - if (!empty($course->lang)) { - $forcelang = $course->lang; + if (!empty($COURSE->lang)) { + $forcelang = $COURSE->lang; } else { $forcelang = ''; }