]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If they are not on the mobile site or not interested in getting the
authorSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 20:53:30 +0000 (20:53 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 4 Oct 2009 20:53:30 +0000 (20:53 +0000)
mobile profile, then give them the regular output.

plugins/MobileProfile/MobileProfilePlugin.php

index 3f3d10261317f80a861ae7a93bd748492a1102b2..28a2eb0c1327aa1a3fa93c30de69089444bdc392 100644 (file)
@@ -141,6 +141,10 @@ class MobileProfilePlugin extends WAP20Plugin
             }
         }
 
+        if (!$this->serveMobile) {
+            return true;
+        }
+
         header('Content-Type: '.$type);
 
         $action->extraHeaders();