Committer: slobin
LJM-1886: incorect link to main pageM Talk.pm
U trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm =================================================================== --- trunk/cgi-bin/LJ/Talk.pm 2011-07-13 05:55:26 UTC (rev 19469) +++ trunk/cgi-bin/LJ/Talk.pm 2011-07-14 02:46:46 UTC (rev 19470) @@ -2059,6 +2059,17 @@ push @opts, 'reply'; + my $controller = LJ::Mob::Controller::ReadPost->new; + + # emulating controller work + if($opts->{form}{mobile_domain} =~ m!^0.$LJ::DOMAIN!) { + if(my $location = $controller->check_access('zero', LJ::get_remote_ip())) { + BML::redirect($location); + } + + LJ::Request->notes(branding_id => 'zero'); + } + # run controller my $controller = LJ::Mob::Controller::ReadPost->new; $controller->_user(LJ::get_remote());