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

[livejournal] r21696: LJSUP-11352: Partnership with Trava.ru

Committer: amyshkin
LJSUP-11352: Partnership with Trava.ru
U   trunk/cgi-bin/weblib.pl
Modified: trunk/cgi-bin/weblib.pl
===================================================================
--- trunk/cgi-bin/weblib.pl	2012-04-11 12:21:32 UTC (rev 21695)
+++ trunk/cgi-bin/weblib.pl	2012-04-11 12:35:47 UTC (rev 21696)
@@ -1150,7 +1150,7 @@
     # copy some things from %POST
     foreach (qw(subject
                 prop_picture_keyword prop_current_moodid
-                prop_current_mood prop_current_music
+                prop_current_mood
                 prop_opt_screening prop_opt_noemail
                 prop_opt_preformatted prop_opt_nocomments prop_opt_lockcomments
                 prop_current_location prop_current_coords
@@ -1158,6 +1158,15 @@
         $req->{$_} = $POST->{$_};
     }
 
+    if ( $POST->{'prop_current_music'} ) {
+        if ( length( $POST->{'prop_current_music'} ) > 197 ) {
+            $req->{'prop_current_music'} = substr( $POST->{'prop_current_music'}, 0, 197 ) . '...';
+        }
+        else {
+            $req->{'prop_current_music'} = $POST->{'prop_current_music'};
+        }
+    }
+
     if ($POST->{"subject"} eq BML::ml('entryform.subject.hint2')) {
         $req->{"subject"} = "";
     }

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