Committer: vtroitsky
LJSUP-12301: Additional refactoring of common parts with Selfpromo. get_template_parameters return format make commonU 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);