From: sam_marshall Date: Fri, 22 Aug 2008 15:46:30 +0000 (+0000) Subject: MDL-15498: Completion system, help buttons aren't supposed to show when editing X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5c168a031e5979e87f6aac7cf56bb7bee986d228;p=moodle.git MDL-15498: Completion system, help buttons aren't supposed to show when editing --- diff --git a/course/lib.php b/course/lib.php index ff9e5ad341..7697482271 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1503,7 +1503,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, // In manual mode the icon is a toggle form. echo "
"; - if(!$shownhelp) { + if(!$shownhelp && !$isediting) { helpbutton('completionicons',get_string('completionicons','completion'),'completion'); $shownhelp=true; } @@ -1515,7 +1515,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } else { // In auto mode, or when editing, the icon is just an image echo ""; - if(!$shownhelp) { + if(!$shownhelp && !$isediting) { helpbutton('completionicons',get_string('completionicons','completion'),'completion'); $shownhelp=true; }