From 5a412e896f4bd5c938be4c1952659eacaed2769c Mon Sep 17 00:00:00 2001 From: Stefan Hanauska Date: Wed, 15 Jan 2025 18:13:52 +0100 Subject: [PATCH] Update classes/helper.php Co-authored-by: PhMemmel <65113153+PhMemmel@users.noreply.github.com> --- classes/helper.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/helper.php b/classes/helper.php index 3f0260c..0fc64b4 100644 --- a/classes/helper.php +++ b/classes/helper.php @@ -26,10 +26,11 @@ class helper { /** * Returns whether the map should be shown on the course page. - * If course format is format_learningmap the setting in the database is ignored. * - * @param cm_info $cm - * @return bool + * If course format format_learningmap is being used the module setting will be ignored. + * + * @param cm_info $cm the coursemodule info object + * @return bool the "showoncoursemap" setting of the coursemodule, or false if current course format is format_learningmap */ public static function show_map_on_course_page($cm): bool { global $DB;