[livejournal] r18593: LJSUP-7776: bugfixes
Committer: emazin
LJSUP-7776: bugfixesU trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm 2011-03-16 12:06:08 UTC (rev 18592)
+++ trunk/cgi-bin/Apache/LiveJournal.pm 2011-03-17 02:12:32 UTC (rev 18593)
@@ -905,8 +905,9 @@
unless ($canon_url =~ m!^http://$host!i || $LJ::DEBUG{'user_vhosts_no_wronghost_redirect'}) {
return redir("$canon_url$uri$args_wq");
}
+ LJ::set_active_journal($u); #for Wishlist2, communities
}
-
+
my $view = $determine_view->($user, "safevhost", $uri);
return $view if defined $view;
} elsif ($func eq 'api') {
@@ -2171,6 +2172,7 @@
## since XMLRPC::Transport::HTTP::Apache will send the error to client.
my $res = eval { LJ::Protocol::xmlrpc_method($method, @_) };
if ($@) { warn "LJ::XMLRPC::$method died: $@"; die $@; }
+
return $res;
}
