Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r19878: LJSUP-8857: Updating commenting form

Committer: amyshkin
LJSUP-8857: Updating commenting form
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-08-29 02:28:57 UTC (rev 19877)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-08-29 05:50:38 UTC (rev 19878)
@@ -1970,9 +1970,15 @@
         'willscreenfriend' => $ml_willscreenfriend,
     );
 
-    $usertype_default =~ /^(.+)_cookie$/;
-    my $usertype = $1 || $usertype_default;
+    my $usertype;
 
+    if ( $usertype_default =~ /^(.+)_cookie$/ ) {
+        $usertype = $1;
+    }
+    else {
+        $usertype = $usertype_default;
+    }
+
     # COMMON TEMPLATE PARAMS ARE DEFINED HERE
     my %params = (
         # string values the template may wish

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