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

[livejournal] r19460: LJINT-442: Error on kommersant (05.07.11...

Committer: gariev
LJINT-442: Error on kommersant (05.07.11)

U   trunk/cgi-bin/LJ/Hooks/LJLike.pm
Modified: trunk/cgi-bin/LJ/Hooks/LJLike.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/LJLike.pm	2011-07-11 07:19:12 UTC (rev 19459)
+++ trunk/cgi-bin/LJ/Hooks/LJLike.pm	2011-07-12 03:29:04 UTC (rev 19460)
@@ -39,7 +39,7 @@
     my $api_id = $LJ::VKONTAKTE_CONF->{'client_id'};
 
     LJ::need_res ( 'js/jquery/jquery.vkloader.js' );
-    LJ::include_raw( 'html' => qq{<script type="text/javascript">jQuery.VK.init({apiId: $api_id, onlyWidgets: true});</script>} );
+    LJ::include_raw( 'html' => qq[<script type="text/javascript">if (jQuery.VK) { jQuery.VK.init({apiId: $api_id, onlyWidgets: true})} </script> ] );
 } );
 
 1;

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