This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
docker-mediawiki/build/scripts/mediawiki-ext-patch.sh
2024-04-25 14:43:50 +03:00

10 lines
483 B
Bash
Executable File

#!/bin/bash
# MobileFrontend - fix manifest
sed -i '/MFStopMobileRedirectCookieSecureValue/c\
"MFManifestDisplay": {\
"value": "standalone"\
},\
"MFStopMobileRedirectCookieSecureValue": {' /var/www/html/extensions/MobileFrontend/extension.json \
sed -i 's/$resultObj->addValue( null, 'display', 'minimal-ui' );/$resultObj->addValue( null, 'display', $config->get( 'MFManifestDisplay' ) );/' /var/www/html/extensions/MobileFrontend/includes/Api/ApiWebappManifest.php