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 07:03:39 UTC (rev 18301) +++ trunk/bin/upgrading/en.dat 2011-02-15 08:14:31 UTC (rev 18302) @@ -2742,7 +2742,7 @@ langname.en=English -link.mobile=<a href="http://m.livejournal.com/redirect?from=[[url]]">Go to mobile version</a> +link.mobile=<a [[href]]>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 07:03:39 UTC (rev 18301) +++ trunk/cgi-bin/LJ/ControlStrip.pm 2011-02-15 08:14:31 UTC (rev 18302) @@ -331,7 +331,7 @@ my $is_ssl = $LJ::IS_SSL = LJ::run_hook("ssl_check"); my $proto = $is_ssl ? "https://" : "http://"; my $url = LJ::eurl ($proto.$hostname.$uri.$args_wq); - $mobile_link = LJ::Lang::ml('link.mobile', { url => $url }); + $mobile_link = LJ::Lang::ml('link.mobile', { href => "href='http://m.livejournal.com/redirect?from=$url'" }); } $tmpl->param(flatten($data), link_mobile => $mobile_link ); Modified: trunk/cgi-bin/weblib.pl =================================================================== --- trunk/cgi-bin/weblib.pl 2011-02-15 07:03:39 UTC (rev 18301) +++ trunk/cgi-bin/weblib.pl 2011-02-15 08:14:31 UTC (rev 18302) @@ -2199,7 +2199,7 @@ my $proto = $is_ssl ? "https://" : "http://"; my $url = LJ::eurl ($proto.$hostname.$uri.$args_wq); $mobile_link .= "<div class='b-message-mobile'><div class='b-message-mobile-wrapper'>"; - $mobile_link .= LJ::Lang::ml('link.mobile', { url => $url }); + $mobile_link .= LJ::Lang::ml('link.mobile', { href => "href='http://m.livejournal.com/redirect?from=$url'" }); $mobile_link .="</div></div>"; } return "<table id='lj_controlstrip' cellpadding='0' cellspacing='0'><tr valign='top'>$ret</tr><tr><td colspan='5'>$message</td></tr></table> $mobile_link";