wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r21763: LJSUP-11903: Remove "Insert Image Beta" ...

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 08:37:24 UTC (rev 21762)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2012-04-20 10:55:45 UTC (rev 21763)
@@ -806,7 +806,7 @@
     };
 
     my $remote = LJ::get_remote();
-    $insert_image .= ($remote && $remote->can_use_ljphoto) ? qq{
+    $insert_image .= ($remote && ($remote->prop ('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE()) && $remote->can_use_ljphoto) ? qq{
     <li class='image-beta'>
         <a
             href='javascript:void(0);'
@@ -1914,7 +1914,7 @@
 DISABLE_HTML
 
         }
-        $$js .= "window.ljphotoEnabled = " . ($remote ? $remote->can_use_ljphoto : "0") . ";";
+        $$js .= "window.ljphotoEnabled = " . ($remote ? ($remote->prop('fotki_migration_status') == LJ::Pics::Migration::MIGRATION_STATUS_DONE()) && $remote->can_use_ljphoto : "0") . ";";
         $$js .= "window.ljphotoUploadEnabled = $ljphoto_enabled;";
         $$js = $self->wrap_js($$js);
 

Tags: livejournal, pm, wisest-owl
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