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

[livejournal] r18288: LJSUP-7908: Add enable flag for debuggin...

Committer: gprochaev
LJSUP-7908: Add enable flag for debugging

U   trunk/cgi-bin/LJ/ControlStrip.pm
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/LJ/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/ControlStrip.pm	2011-02-14 04:14:21 UTC (rev 18287)
+++ trunk/cgi-bin/LJ/ControlStrip.pm	2011-02-14 04:32:54 UTC (rev 18288)
@@ -323,7 +323,7 @@
     ) or die "Can't open template: $!";
 
     my $mobile_link = '';
-    if (Apache::WURFL->is_mobile()) {
+    if ($LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) {
         my $uri = LJ::Request->uri;
         my $hostname = LJ::Request->hostname;
         my $args = LJ::Request->args;

Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2011-02-14 04:14:21 UTC (rev 18287)
+++ trunk/cgi-bin/weblib.pl	2011-02-14 04:32:54 UTC (rev 18288)
@@ -2190,7 +2190,7 @@
     $message = LJ::Widget::SiteMessages->render if LJ::Widget::SiteMessages->should_render;
 
     my $mobile_link = '';
-    if (Apache::WURFL->is_mobile()) {
+    if ($LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) {
         my $uri = LJ::Request->uri;
         my $hostname = LJ::Request->hostname;
         my $args = LJ::Request->args;

Tags: livejournal, pl, 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