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

[ljcom] r13107: LJCOMCOMREAD-381: Smart App Banners

Committer: wisest-owl
LJCOMCOMREAD-381: Smart App Banners

U   trunk/cgi-bin/LJ/Hooks/S2Styles.pm
Modified: trunk/cgi-bin/LJ/Hooks/S2Styles.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/S2Styles.pm	2013-01-14 14:20:58 UTC (rev 13106)
+++ trunk/cgi-bin/LJ/Hooks/S2Styles.pm	2013-01-15 09:02:29 UTC (rev 13107)
@@ -21,12 +21,12 @@
 
     return unless $u;
     return unless $r;
-    return unless LJ::Request->header_in('User-Agent') =~ /iPhone/;
+    return unless LJ::Request->header_in('User-Agent') =~ /iPhone|iPad/;
 
     my $ids = $u->prop ('community_reader_ids');
     return unless $ids;
 
-    my ($app_store_id, $android_id) = split ("|", $ids);
+    my ($app_store_id, $android_id) = split (/\|/, $ids);
 #$app_store_id = "333903271";
     if ($app_store_id) {
         my $uri = $r->hostname.$r->uri;

Tags: ljcom, 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