holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r20913: LJSUP-10851: All new accounts should go ...

Committer: akanashin
LJSUP-10851: All new accounts should go with disabled customized comment pages
U   trunk/cgi-bin/LJ/Widget/CreateAccount.pm
Modified: trunk/cgi-bin/LJ/Widget/CreateAccount.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/CreateAccount.pm	2012-01-17 05:59:26 UTC (rev 20912)
+++ trunk/cgi-bin/LJ/Widget/CreateAccount.pm	2012-01-17 06:16:43 UTC (rev 20913)
@@ -587,6 +587,10 @@
         });
         return $class->ml('widget.createaccount.error.cannotcreate') unless $nu;
 
+        $nu->revert_style;
+        my $style = LJ::S2::load_style($nu->prop('s2_style'));
+        LJ::Customize->save_s2_props($nu, $style, {'view_entry_disabled' => 1});
+
         # set gender
         $nu->set_prop(gender => $post->{gender});
 

Tags: akanashin, holyandrew, 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