This commit is contained in:
Andrew Nicols 2023-06-27 13:14:08 +08:00
commit 827ba96806
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -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)
[