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

[livejournal] r18958: LJINT-425 (Comments for side projects: a...

Committer: ailyin
LJINT-425 (Comments for side projects: add mail and vk authorization)
U   trunk/cgi-bin/LJ/Widget/LoginMulti.pm
Modified: trunk/cgi-bin/LJ/Widget/LoginMulti.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-04-22 08:55:08 UTC (rev 18957)
+++ trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-04-22 09:30:24 UTC (rev 18958)
@@ -83,7 +83,9 @@
             $type_display->{'errors'} = [ map { { 'error' => $_ } } @errors ];
         }
 
-        if ( $opts{'embedded'} ) {
+        if ( $opts{'embedded'}
+          && $opts{'partner'}->identity_type_enabled($type) )
+      {
             $template->param( 'type_' . $type => [ $type_display ] );
         }
         push @types, $type_display;

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