wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r9428: LJSUP-6631. https page should show custo...

Committer: gprochaev
LJSUP-6631. https page should show custom userhead

U   trunk/htdocs/admin/userheads/manage.bml
Modified: trunk/htdocs/admin/userheads/manage.bml
===================================================================
--- trunk/htdocs/admin/userheads/manage.bml	2010-08-27 07:15:56 UTC (rev 9427)
+++ trunk/htdocs/admin/userheads/manage.bml	2010-08-27 08:59:12 UTC (rev 9428)
@@ -27,8 +27,8 @@
 
         my ($result_l, $result_s, $content_length, $magic, $mime_type) = ();
 
-        $content_length = bytes::length($POST{'uh_file'});
-        $magic = substr $POST{'uh_file'}, 0, 20;
+        $content_length = bytes::length($userhead_content);
+        $magic = substr $userhead_content, 0, 20;
         $mime_type = format_magic($magic)
             or die "Unknown format for upload";
         my $result = LJ::FileStore->save_file(path => "/userhead/" . $uh->get_uh_id, content => $userhead_content, mime_type => $mime_type, content_length => $content_length);

Tags: bml, ljcom, wisest-owl
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