Committer: gprochaev
LJSUP-7908: Add enable flag for debuggingU 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;