alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r19252: LJSUP-9016: donate button, new design fo...

Committer: afedorov
LJSUP-9016: donate button, new design for embed give_button

U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2011-06-08 06:07:08 UTC (rev 19251)
+++ trunk/cgi-bin/cleanhtml.pl	2011-06-08 06:57:44 UTC (rev 19252)
@@ -790,8 +790,8 @@
                     elsif ( $button eq 'livejournal' ) {
                         my $entry = LJ::Entry->new_from_url($entry_url);
                         my $give_button = LJ::run_hook("give_button", {
-                            'journal' => $entry->journal->user,
-                            'itemid'  => $entry->ditemid,
+                            'journal' => $entry ? $entry->journal->user : '',
+                            'itemid'  => $entry ? $entry->ditemid : 0,
                             'type'    => 'tag',
                         });
 

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