MaxSem has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/83823


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/23/83823/1

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: newchange
Gerrit-Change-Id: I0abc7aba57bd333609da1fb2c302b6dd60dcb2fb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: MaxSem <maxsem.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to