vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r20379: LJSUP-10019: Possibility of using new an...

Committer: vsukhanov
LJSUP-10019: Possibility of using new and old version of photohosting
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-19 08:29:52 UTC (rev 20378)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-19 08:31:41 UTC (rev 20379)
@@ -762,6 +762,21 @@
         </li>
     };
 
+    my $remote = LJ::get_remote();
+    if ($remote and $remote->can_use_ljphoto){
+        $insert_image .= qq{
+        <li class='image'>
+            <a
+                href='javascript:void(0);'
+                onclick='InOb.handleInsertImage();'
+                title='$BML::ML{'ljimage.beta'}'
+            >
+                $BML::ML{'entryform.insert.image2'}
+            </a>
+        </li>
+        };
+    }
+
     my $insert_media = '';
     unless ($LJ::DISABLED{embed_module}) {
         $insert_media = qq{

Tags: livejournal, pm, vadvs, vsukhanov
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