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

[livejournal] r19182: LJINT-435 (Cross-version support in comm...

Committer: ailyin
LJINT-435 (Cross-version support in comments for side projects)
U   trunk/cgi-bin/LJ/Widget/LoginMulti.pm
Modified: trunk/cgi-bin/LJ/Widget/LoginMulti.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-05-31 09:01:21 UTC (rev 19181)
+++ trunk/cgi-bin/LJ/Widget/LoginMulti.pm	2011-05-31 09:52:50 UTC (rev 19182)
@@ -27,7 +27,11 @@
         return if LJ::Request->redirected;
     }
 
-    my $filename = $opts{'embedded'} ? 'ExternalLogin' : 'Login';
+    my $filename = 'Login';
+    if ( $opts{'embedded'} ) {
+        my $partner = $opts->{'partner'};
+        $filename = 'ExternalLogin/v' . $partner->widget_version . '.tmpl';
+    }
 
     ## Draw widget
     my $template = LJ::HTML::Template->new(

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