jenkins-bot has submitted this change and it was merged.
Change subject: Final normalisation of WAP detection
......................................................................
Final normalisation of WAP detection
If a browser claims HTML support - it gets HTML, period.
Change-Id: I0abc7aba57bd333609da1fb2c302b6dd60dcb2fb
---
M includes/DeviceDetection.php
1 file changed, 2 insertions(+), 3 deletions(-)
Approvals:
Awjrichards: Looks good to me, approved
jenkins-bot: Verified
diff --git a/includes/DeviceDetection.php b/includes/DeviceDetection.php
index 53fa2b2..09861bb 100644
--- a/includes/DeviceDetection.php
+++ b/includes/DeviceDetection.php
@@ -78,9 +78,8 @@
* @return string
*/
protected function detectFormat() {
- if ( strpos( $this->acceptHeader, 'vnd.wap.wml' ) !== false
- && strpos( $this->acceptHeader, 'text/html' ) === false
- && strpos( $this->acceptHeader,
'application/vnd.wap.xhtml+xml' ) === false )
+ if ( strpos( $this->acceptHeader, 'text/vnd.wap.wml' ) !== false
+ && strpos( $this->acceptHeader, 'text/html' ) === false
)
{
return 'wml';
}
--
To view, visit https://gerrit.wikimedia.org/r/83823
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0abc7aba57bd333609da1fb2c302b6dd60dcb2fb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits