diff --git a/admin/tool/mobile/mobile.webmanifest.php b/admin/tool/mobile/mobile.webmanifest.php index 020fe8ac397..72a057b4547 100644 --- a/admin/tool/mobile/mobile.webmanifest.php +++ b/admin/tool/mobile/mobile.webmanifest.php @@ -30,7 +30,6 @@ define('NO_DEBUG_DISPLAY', true); require_once(__DIR__ . '/../../../config.php'); -use tool_mobile\api; header('Content-Type: application/json; charset: utf-8'); @@ -40,7 +39,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' => \core\context\system::instance(), + ]); $manifest->prefer_related_applications = true; $manifest->icons = [(object) [