sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r22258: LJSUP-12301: Additional refactoring of c...

Committer: vtroitsky
LJSUP-12301: Additional refactoring of common parts with Selfpromo. get_template_parameters return format make common
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2012-06-15 11:29:34 UTC (rev 22257)
+++ trunk/cgi-bin/ljprotocol.pl	2012-06-15 11:29:36 UTC (rev 22258)
@@ -5476,7 +5476,7 @@
 
     if ($req->{getselfpromo}) {
         return fail($err, 500) unless $res->{selfpromo} && ref $res->{selfpromo};
-        my $sp = $res->{selfpromo}->get_template_params()->[0];
+        my $sp = $res->{selfpromo}->get_template_params();
         $sp->{ditemid}   = delete $sp->{post_id} if $sp->{post_id};
         $sp->{journalid} = delete $sp->{journal_id} if $sp->{journal_id};
         LJ::get_aggregated_entry($sp, $entry_opts);

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