]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Changed DEFINE name to avoid conflicts
authorSarven Capadisli <csarven@status.net>
Fri, 20 Nov 2009 04:49:35 +0000 (04:49 +0000)
committerSarven Capadisli <csarven@status.net>
Fri, 20 Nov 2009 04:49:35 +0000 (04:49 +0000)
plugins/MobileProfile/MobileProfilePlugin.php

index c257f3fd842549f55b90527e1982f0b9abed314a..0b1e4de28651a51c98443bd901dd40e09c24428c 100644 (file)
@@ -31,7 +31,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
-define('PAGE_TYPE_PREFS',
+define('PAGE_TYPE_PREFS_MOBILEPROFILE',
        'application/vnd.wap.xhtml+xml, application/xhtml+xml, text/html;q=0.9');
 
 require_once INSTALLDIR.'/plugins/Mobile/WAP20Plugin.php';
@@ -172,7 +172,7 @@ class MobileProfilePlugin extends WAP20Plugin
               $_SERVER['HTTP_ACCEPT'] : null;
 
             $cp = common_accept_to_prefs($httpaccept);
-            $sp = common_accept_to_prefs(PAGE_TYPE_PREFS);
+            $sp = common_accept_to_prefs(PAGE_TYPE_PREFS_MOBILEPROFILE);
 
             $type = common_negotiate_type($cp, $sp);