madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20369: LJSUP-10176: Fixed

Committer: sbelyaev
LJSUP-10176: Fixed
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-10-18 13:16:05 UTC (rev 20368)
+++ trunk/cgi-bin/ljprotocol.pl	2011-10-18 13:48:12 UTC (rev 20369)
@@ -1992,8 +1992,10 @@
 
     # are they trying to post back in time?
     if ($posterid == $ownerid && $u->{'journaltype'} ne 'Y' &&
+        !LJ::is_enabled("delyaed_entries") && 
         !$time_was_faked && $u->{'newesteventtime'} &&
-        $eventtime lt $u->{'newesteventtime'} ) {
+        $eventtime lt $u->{'newesteventtime'} &&
+        !$req->{'props'}->{'opt_backdated'}) {
         return fail($err, 153, "You have an entry which was posted at $u->{'newesteventtime'}, but you're trying to post an entry before this. Please check the date and time of both entries. If the other entry is set in the future on purpose, edit that entry to use the \"Date Out of Order\" option. Otherwise, use the \"Date Out of Order\" option for this entry instead.");
     }
    

Tags: livejournal, madeon, pl, sbelyaev
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