Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[livejournal] r22666: LJSUP-13311: On beta the new update.bml ...

Committer: anazarov
LJSUP-13311: On beta the new update.bml should be set as default for all beta users
U   trunk/htdocs/editjournal.bml
U   trunk/htdocs/update.bml
Modified: trunk/htdocs/editjournal.bml
===================================================================
--- trunk/htdocs/editjournal.bml	2012-08-16 08:13:07 UTC (rev 22665)
+++ trunk/htdocs/editjournal.bml	2012-08-16 09:02:38 UTC (rev 22666)
@@ -46,7 +46,10 @@
 
     if ($mode eq "edit") {
         if ( exists $POST{'ljpost:off'} ) {
-            LJ::Request->delete_cookie("ljpost");
+            LJ::Request->set_cookie(
+                ljpost  => 0,
+                expires => time + 86400 * 7,
+            );
         }
 
         LJ::need_res(qw(

Modified: trunk/htdocs/update.bml
===================================================================
--- trunk/htdocs/update.bml	2012-08-16 08:13:07 UTC (rev 22665)
+++ trunk/htdocs/update.bml	2012-08-16 09:02:38 UTC (rev 22666)
@@ -259,7 +259,10 @@
     my $preview = $POST{'action:preview'};
 
     if ( exists $POST{'ljpost:off'} ) {
-        LJ::Request->delete_cookie("ljpost");
+        LJ::Request->set_cookie(
+            ljpost  => 0,
+            expires => time + 86400 * 7,
+        );
     }
 
     # are we spellchecking before we post?

Tags: anazarov, bml, livejournal, nfokz
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