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(