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

[ljcom] r10032: LJSUP-7908: Add enable flag for debuggin...

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

U   trunk/cgi-bin/bml/scheme/lanzelot.look
Modified: trunk/cgi-bin/bml/scheme/lanzelot.look
===================================================================
--- trunk/cgi-bin/bml/scheme/lanzelot.look	2011-02-14 03:18:01 UTC (rev 10031)
+++ trunk/cgi-bin/bml/scheme/lanzelot.look	2011-02-14 04:39:10 UTC (rev 10032)
@@ -121,11 +121,11 @@
 
 <?_code {
     my $class = LJ::get_body_class_for_service_pages();
-    my $is_mobile = Apache::WURFL->is_mobile() ? 1 : 0;
+    my $is_mobile = ($LJ::DISABLED{'view_mobile_link_always'} || Apache::WURFL->is_mobile()) ? 1 : 0;
     return "<body class='$class ".($is_mobile ? "mobile-msg" : '')."' %%bodyopts%%>";
 } _code?>
 <?_code
-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: ljcom, look, 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