Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17820: LJSUP-7454: Removing Interstitial from M...

Committer: gariev
LJSUP-7454: Removing Interstitial from Mobile Browsers
U   trunk/cgi-bin/Apache/WURFL.pm
Modified: trunk/cgi-bin/Apache/WURFL.pm
===================================================================
--- trunk/cgi-bin/Apache/WURFL.pm	2010-11-30 03:08:57 UTC (rev 17819)
+++ trunk/cgi-bin/Apache/WURFL.pm	2010-11-30 03:17:46 UTC (rev 17820)
@@ -7,7 +7,7 @@
 
 sub is_mobile {
     my $class = shift;
-    my $user_agent = shift;
+    my $user_agent = shift || LJ::Request->header_in('User-Agent');
 
     if ($LJ::WURFL{'ua_keys_mobile'}) {
         my @redir = grep { $user_agent =~ /\Q$_\E/i } @{$LJ::WURFL{'ua_keys_mobile'}};

Tags: gariev, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments