madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23079: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-10-09 13:00:19 UTC (rev 23078)
+++ trunk/cgi-bin/LJ/User.pm	2012-10-09 13:11:43 UTC (rev 23079)
@@ -6633,7 +6633,7 @@
 # returns: an array of usernames.
 # args: u, opts?
 # des-opts: Optional hashref.  keys are:
-#           - type: 'P' to only return users of journaltype 'P'.
+#           - type: 'P' to only return users of ournaltype 'P'.
 #                   'S' return users of Supermaintainer type instead Maintainer type.
 #           - cap:  cap to filter users on.
 # </LJFUNC>
@@ -7509,7 +7509,10 @@
             $user = LJ::load_user($user);
         }
 
+        return $user->{'journal_base'} 
+            if isu($user) && $user->{'journal_base'};
         my $hookurl = LJ::run_hook("journal_base", $user, $vhost);
+        $user->{'journal_base'} = $hookurl if (isu($user) && $hookurl);
         return $hookurl if $hookurl;
     }
 

Tags: livejournal, 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