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

[livejournal] r18299: LJSUP-7908. Link to mobile.

Committer: gprochaev
LJSUP-7908. Link to mobile.

U   trunk/bin/upgrading/en.dat
U   trunk/cgi-bin/LJ/ControlStrip.pm
U   trunk/cgi-bin/weblib.pl
Modified: trunk/bin/upgrading/en.dat
===================================================================
--- trunk/bin/upgrading/en.dat	2011-02-15 03:46:39 UTC (rev 18298)
+++ trunk/bin/upgrading/en.dat	2011-02-15 04:50:25 UTC (rev 18299)
@@ -2742,7 +2742,7 @@
 
 langname.en=English
 
-link.mobile=<a href="http://m.livejournal.com/?from_url=[[url]]">Go to mobile version</a>
+link.mobile=<a href="http://m.livejournal.com/redirect?from=[[url]]">Go to mobile version</a>
 
 ljfeedback.text=Like to vote?  Join [[journal]] where we post polls and surveys that help influence and improve LJ.
 

Modified: trunk/cgi-bin/LJ/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/ControlStrip.pm	2011-02-15 03:46:39 UTC (rev 18298)
+++ trunk/cgi-bin/LJ/ControlStrip.pm	2011-02-15 04:50:25 UTC (rev 18299)
@@ -323,7 +323,7 @@
     ) or die "Can't open template: $!";
 
     my $mobile_link = '';
-    if ($LJ::DISABLED{'view_mobile_link_always'} || 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-15 03:46:39 UTC (rev 18298)
+++ trunk/cgi-bin/weblib.pl	2011-02-15 04:50:25 UTC (rev 18299)
@@ -2190,7 +2190,7 @@
     $message = LJ::Widget::SiteMessages->render if LJ::Widget::SiteMessages->should_render;
 
     my $mobile_link = '';
-    if ($LJ::DISABLED{'view_mobile_link_always'} || 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: dat, 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