Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r19284: LJSUP-8952 (<lj like> tag): do not warn ...

Committer: ailyin
LJSUP-8952 (<lj like> tag): do not warn if vkontakte_conf is absent
U   trunk/cgi-bin/LJ/Hooks/LJLike.pm
Modified: trunk/cgi-bin/LJ/Hooks/LJLike.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/LJLike.pm	2011-06-15 04:47:51 UTC (rev 19283)
+++ trunk/cgi-bin/LJ/Hooks/LJLike.pm	2011-06-15 04:51:41 UTC (rev 19284)
@@ -25,6 +25,7 @@
 } );
 
 LJ::register_hook( 'sitewide_resources' => sub {
+    return unless $LJ::VKONTAKTE_CONF;
     return if $LJ::REQ_GLOBAL{'sitewide_resources_ljlike_vkontakte'}++;
 
     my $api_id = $LJ::VKONTAKTE_CONF->{'client_id'};

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