Committer: vsukhanov
LJSUP-6840: 15 threads per pageU trunk/cgi-bin/LJ/S2/EntryPage.pm U trunk/htdocs/talkread.bml
Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm =================================================================== --- trunk/cgi-bin/LJ/S2/EntryPage.pm 2010-09-16 09:21:31 UTC (rev 17393) +++ trunk/cgi-bin/LJ/S2/EntryPage.pm 2010-09-16 10:50:32 UTC (rev 17394) @@ -103,6 +103,8 @@ my @comments; if ($entry->comments_shown) { + ## allow to modify strategies to load/expand comments tree. + LJ::run_hooks('load_comments_opts', $u, $itemid, $copts); @comments = LJ::Talk::load_comments($u, $remote, "L", $itemid, $copts); } Modified: trunk/htdocs/talkread.bml =================================================================== --- trunk/htdocs/talkread.bml 2010-09-16 09:21:31 UTC (rev 17393) +++ trunk/htdocs/talkread.bml 2010-09-16 10:50:32 UTC (rev 17394) @@ -466,8 +466,8 @@ $opts->{expand_all} = 1 if $GET{expand} eq 'all'; } - ## allow to modify strategies to load/expand comments tree in S1 styles. - LJ::run_hooks('s1_load_comments_opts', $u, $itemid, $opts); + ## allow to modify strategies to load/expand comments tree. + LJ::run_hooks('load_comments_opts', $u, $itemid, $opts); my @comments = LJ::Talk::load_comments($u, $remote, "L", $itemid, $opts); return $ML{'error.nodbmaintenance'} if $opts->{'out_error'} eq "nodb";