holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12346: LJINT-467: Comments for side projects (L...

Committer: akanashin
LJINT-467: Comments for side projects (Lenta.ru olympics)
U   trunk/cgi-bin/LJ/Hooks/PartnerSites.pm
Modified: trunk/cgi-bin/LJ/Hooks/PartnerSites.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/PartnerSites.pm	2012-07-25 09:21:14 UTC (rev 12345)
+++ trunk/cgi-bin/LJ/Hooks/PartnerSites.pm	2012-07-25 11:48:17 UTC (rev 12346)
@@ -50,7 +50,7 @@
 LJ::register_hook( 'override_display_name' => sub {
     my ( $u, $display_name_ref ) = @_;
 
-    return if ! $u || $u->equals( LJ::get_remote() );
+   return if ! $u || $u->equals( LJ::get_remote() );
 
     my $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
     return unless $partner && $partner->overrides->{'display_name'};
@@ -137,4 +137,15 @@
     @$auth_sequence = split(' ', $partner->overrides->{'auth_sequence'});
 } );
 
+LJ::register_hook( 'override_ctxpopup_keys' => sub {
+    my ( $u, $ctxpopup_keys ) = @_;
+
+    return unless $u;
+
+    my $partner = LJ::PartnerSite->find_by_journal_username( $u->username );
+    return unless $partner && $partner->overrides->{'ctxpopup_keys'};
+
+    @$ctxpopup_keys = split(' ', $partner->overrides->{'ctxpopup_keys'});
+} );
+
 1;

Tags: akanashin, holyandrew, ljcom, pm
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