[livejournal] r22495: LJINT-467: Comments for side projects (L...
Committer: akanashin
LJINT-467: Comments for side projects (Lenta.ru olympics)U trunk/cgi-bin/Apache/LiveJournal.pm U trunk/htdocs/tools/endpoints/ctxpopup.bml
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm 2012-07-25 11:42:23 UTC (rev 22494)
+++ trunk/cgi-bin/Apache/LiveJournal.pm 2012-07-25 11:47:53 UTC (rev 22495)
@@ -435,6 +435,9 @@
$redir_url = "http://".$redir_url unless $redir_url =~ m!https?://!;
return redir($redir_url.$uri);
}
+ my $partner_url;
+ LJ::run_hook('override_journal_url', LJ::load_user($username), \$partner_url);
+ return redir($partner_url) if $partner_url;
}
# process controller
Modified: trunk/htdocs/tools/endpoints/ctxpopup.bml
===================================================================
--- trunk/htdocs/tools/endpoints/ctxpopup.bml 2012-07-25 11:42:23 UTC (rev 22494)
+++ trunk/htdocs/tools/endpoints/ctxpopup.bml 2012-07-25 11:47:53 UTC (rev 22495)
@@ -185,6 +185,8 @@
your_friend you_member you_subscribed you_watching ljtalk online offline
/;
+ LJ::run_hook('override_ctxpopup_keys', $u, \@ml_keys);
+
## optimization: load all ML strings into local cache at once
LJ::Lang::get_text_multi(BML::get_language(), undef, [map { "$language_scope.$_" } @ml_keys]);
