madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12781: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/Hooks/PartnerSites.pm
Modified: trunk/cgi-bin/LJ/Hooks/PartnerSites.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/PartnerSites.pm	2012-10-17 13:05:41 UTC (rev 12780)
+++ trunk/cgi-bin/LJ/Hooks/PartnerSites.pm	2012-10-17 13:49:36 UTC (rev 12781)
@@ -98,9 +98,11 @@
 LJ::register_hook( 'override_entry_url' => sub {
     my ( $u, $entry, $entry_url_ref ) = @_;
 
-    my $key       =  '__override_entry_url';
-    return $entry->{$key} 
-        if exists $entry->{$key};
+    my $key = '__override_entry_url';
+    if (exists $entry->{$key}) {
+        $$entry_url_ref = $entry->{$key};
+        return;
+    }
 
     return if ! $u || $u->equals( LJ::get_remote() );
 
@@ -162,8 +164,11 @@
     my ( $u, $entry, $key, $link_ref ) = @_;
 
     my $ch_key = '__override_s2_link';
-    return $entry->{$ch_key}
-            if exists $entry->{$ch_key};
+    
+    if (exists $entry->{$ch_key}) {
+        $$link_ref = $entry->{$ch_key};
+        return;
+    }
 
     return if ! $u || $u->equals( LJ::get_remote() );
 

Tags: ljcom, madeon, pm, sbelyaev
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