wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17174: LJSUP-5987

Committer: gprochaev
LJSUP-5987

U   trunk/cgi-bin/Apache/WURFL.pm
Modified: trunk/cgi-bin/Apache/WURFL.pm
===================================================================
--- trunk/cgi-bin/Apache/WURFL.pm	2010-08-23 03:43:01 UTC (rev 17173)
+++ trunk/cgi-bin/Apache/WURFL.pm	2010-08-23 04:37:02 UTC (rev 17174)
@@ -11,8 +11,7 @@
 
     if ($LJ::WURFL{'ua_keys_mobile'}) {
         my @redir = grep { $user_agent =~ /\Q$_\E/i } @{$LJ::WURFL{'ua_keys_mobile'}};
-        scalar @redir ? return 1
-            : return 0;
+        return scalar @redir ? 1 : 0;
     }
 
     unless ($wurfl) {
@@ -112,9 +111,10 @@
                     return "$mobile_domain/read/user/$username/tag/$1";
                 }
 
-                $uri =~ /^\/(\d+\.html)?$/;
-                # $post_id = int($1);
-                return $self->_process_url_args($username, $args, int($1));
+                if ($uri =~ /^\/(\d+\.html)?$/) {
+                    # $post_id = int($1);
+                    return $self->_process_url_args($username, $args, int($1));
+                }
             }
         }
     }

Tags: livejournal, pm, wisest-owl
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