diff --git a/admin/tool/mobile/mobile.webmanifest.php b/admin/tool/mobile/mobile.webmanifest.php index fd764578bfd..49dc9257f2e 100644 --- a/admin/tool/mobile/mobile.webmanifest.php +++ b/admin/tool/mobile/mobile.webmanifest.php @@ -31,7 +31,6 @@ define('NO_DEBUG_DISPLAY', true); define('NO_MOODLE_COOKIES', true); require_once(__DIR__ . '/../../../config.php'); -use tool_mobile\api; header('Content-Type: application/json; charset: utf-8'); @@ -41,7 +40,9 @@ if (!empty($CFG->enablemobilewebservice) && !empty($mobilesettings->enablesmarta !empty($mobilesettings->androidappid)) { $manifest = new StdClass; - $manifest->short_name = format_string($SITE->shortname); + $manifest->short_name = format_string($SITE->shortname, true, [ + 'context' => context_system::instance(), + ]); $manifest->prefer_related_applications = true; $manifest->icons = [(object) [