From 11725a2383ba96ccfc29a25d0574000845740968 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Wed, 17 Jul 2024 15:20:18 +0200 Subject: [PATCH] Mobile app: Stop using deprecated module-description --- classes/output/mobile.php | 1 + templates/mobile_view_page_latest.mustache | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/classes/output/mobile.php b/classes/output/mobile.php index 4a2cd161..4dbf2e7d 100644 --- a/classes/output/mobile.php +++ b/classes/output/mobile.php @@ -78,6 +78,7 @@ public static function mobile_course_view($args) { 'option_audio' => $optionaudio, 'cmid' => $cm->id, 'courseid' => $args->courseid, + 'canusemoduleinfo' => $args->appversioncode >= 44000, ]; return [ diff --git a/templates/mobile_view_page_latest.mustache b/templates/mobile_view_page_latest.mustache index 6f96df6b..e513a14d 100644 --- a/templates/mobile_view_page_latest.mustache +++ b/templates/mobile_view_page_latest.mustache @@ -47,7 +47,13 @@ }} {{=<% %>=}}
- + <%#canusemoduleinfo%> + + + <%/canusemoduleinfo%> + <%^canusemoduleinfo%> + + <%/canusemoduleinfo%> <%#available%>