madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r11826: LJSUP-11909: New Repost feature

Committer: sbelyaev
LJSUP-11909: New Repost feature
U   trunk/cgi-bin/LJ/Clean/Like.pm
Modified: trunk/cgi-bin/LJ/Clean/Like.pm
===================================================================
--- trunk/cgi-bin/LJ/Clean/Like.pm	2012-04-26 13:51:21 UTC (rev 11825)
+++ trunk/cgi-bin/LJ/Clean/Like.pm	2012-04-26 14:14:19 UTC (rev 11826)
@@ -3,12 +3,12 @@
 use strict;
 use warnings;
 
+use Encode;
 use LJ::Entry;
 use LJ::HTML::Template;
 
 sub new {
     my ($class, $opts) = @_;
-    warn LJ::D($opts);
 
     my $entry_url = $opts->{'entry_url'};
     my $buttons   = $opts->{'buttons'};
@@ -89,7 +89,7 @@
     my $title_ehtml = Encode::decode_utf8( LJ::ehtml( $meta->{'title'} ) );
 
     $params->{'lj_like.twitter'} = 1;
-    $params->{'title_ehtml'}  = $title_ehtml;
+    $params->{'title_ehtml'} = $title_ehtml;
     $params->{'locale'} = $locale;
 }
 
@@ -142,7 +142,7 @@
                         });
 
     $params->{'lj_like.livejournal'} = 1;
-    $params->{'give_button'} = Encode::decode_utf8($give_button);
+    $params->{'give_button'} = $give_button;
 }
 
 sub __params {
@@ -194,7 +194,7 @@
 
     my $params = $self->__params($opts);
     $template->param(  %$params  );
-    return $template->output;
+    return Encode::decode_utf8($template->output);
 }
 
 1;

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