Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17209: LJSUP-6630 (Editing a comment is posting...

Committer: ailyin
LJSUP-6630 (Editing a comment is posting a second version, not editing the first)
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2010-08-27 03:31:45 UTC (rev 17208)
+++ trunk/cgi-bin/LJ/Talk.pm	2010-08-27 04:11:49 UTC (rev 17209)
@@ -1387,10 +1387,10 @@
     my $opts = shift;
     return "Invalid talkform values." unless ref $opts eq 'HASH';
 
-    my ( $remote, $journalu, $parpost, $form, $editid ) =
-        map { $opts->{$_} } qw(remote journalu parpost form edit);
+    my ( $remote, $journalu, $parpost, $form ) =
+        map { $opts->{$_} } qw(remote journalu parpost form);
 
-    $editid ||= 0;
+    my $editid = $form->{'edit'} || 0;
 
     # early bail if the user can't be making comments yet
     return $LJ::UNDERAGE_ERROR

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