Committer: wisest-owl
LJSUP-11903: Remove "Insert Image Beta" button from update.bml for unlogged and not migrated users.U trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/EntryForm.pm 2012-04-20 12:34:08 UTC (rev 21769) +++ trunk/cgi-bin/LJ/Widget/EntryForm.pm 2012-04-20 12:40:03 UTC (rev 21770) @@ -1914,7 +1914,9 @@ DISABLE_HTML } - $$js .= "window.ljphotoEnabled = " . ($remote ? ($remote->prop('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE()) && $remote->can_use_ljphoto : "0") . ";"; + my $show_button = 0; + $show_button = 1 if $remote && ($remote->prop('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE()) && $remote->can_use_ljphoto; + $$js .= "window.ljphotoEnabled = $show_button;"; $$js .= "window.ljphotoUploadEnabled = $ljphoto_enabled;"; $$js = $self->wrap_js($$js);