Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19207: LJSUP-8952: <lj like> tag

Committer: gariev
LJSUP-8952: <lj like> tag
more strict json
U   branches/r79.4/cgi-bin/LJ/Hooks/LJLike.pm
Modified: branches/r79.4/cgi-bin/LJ/Hooks/LJLike.pm
===================================================================
--- branches/r79.4/cgi-bin/LJ/Hooks/LJLike.pm	2011-06-02 11:31:39 UTC (rev 19206)
+++ branches/r79.4/cgi-bin/LJ/Hooks/LJLike.pm	2011-06-02 11:55:26 UTC (rev 19207)
@@ -26,7 +26,7 @@
         my $language = LJ::Lang::get_remote_lang();
         my $locale = LJ::lang_to_locale($language);
         $locale =~ s/_.*//g;
-        $$after_body_open_ref .=  qq{<script type="text/javascript" src="http://apis.google.com/js/plusone.js">{lang: $locale}</script>};
+        $$after_body_open_ref .=  qq{<script type="text/javascript" src="http://apis.google.com/js/plusone.js">{lang: '$locale'}</script>};
     }
 } );
 

Tags: gariev, livejournal, pm
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