svnno****@sourc*****
svnno****@sourc*****
2008年 5月 9日 (金) 12:22:06 JST
Revision: 632 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=632 Author: tach Date: 2008-05-09 12:22:06 +0900 (Fri, 09 May 2008) Log Message: ----------- enable mobile mode at only CGI Modified Paths: -------------- slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm =================================================================== --- slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm 2008-05-08 12:28:11 UTC (rev 631) +++ slashjp/branches/2.5.0.192/Slash/Utility/Environment/Environment.pm 2008-05-09 03:22:06 UTC (rev 632) @@ -1625,7 +1625,7 @@ $constants->{tweak_japanese} and $user->{aton} = ''; # mobile theme for slashdot.jp - if ($constants->{mobile_enabled}) { + if ($constants->{mobile_enabled} && $ENV{GATEWAY_INTERFACE}) { #print STDERR $r->header_in('user-agent') . " =~ $constants->{mobile_useragent_regex}\n"; if ($constants->{mobile_useragent_regex} && $r->header_in('user-agent') =~ $constants->{mobile_useragent_regex}) {