jadelennox: Oracle, with her headset, looking shocked (oracle: headset look)
jadelennox ([personal profile] jadelennox) wrote in [site community profile] dw_dev2009-11-17 12:31 am
Entry tags:

alt_layout in CreateAccount.pm?

cgi-bin/LJ/Widget/CreateAccount.pm is full of references to a variable named $alt_layout. However, aside from in the accompanying CreateAccount JavaScript and i18n files, $alt_layout is never mentioned in the code. I can certainly not see where it gets passed to CreateAccount.pm in order to get taken in as an option:

my $alt_layout = $opts{alt_layout} ? 1 : 0;

What is this variable for? How does it get passed to CreateAccount? What does it mean?

Thanks very much.
janinedog: (Default)

[personal profile] janinedog 2009-11-17 06:19 am (UTC)(link)
Going strictly from memory, I'm pretty sure it's for an alternative version of the create page, and I think it was only used (on LJ) on the The Independent LJ account creation page (which was different from the normal LJ account creation page). It's quite likely it's not being used on DW at all.
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2009-11-18 05:11 pm (UTC)(link)
I believe Janine's right. We could probably get rid of that code.