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

[ljcom] r12757: LJSUP-13633: Can't change individual use...

Committer: wisest-owl
LJSUP-13633: Can't change individual userhead

U   trunk/htdocs/admin/userheads/manage.bml
Modified: trunk/htdocs/admin/userheads/manage.bml
===================================================================
--- trunk/htdocs/admin/userheads/manage.bml	2012-10-15 09:10:15 UTC (rev 12756)
+++ trunk/htdocs/admin/userheads/manage.bml	2012-10-15 11:21:24 UTC (rev 12757)
@@ -107,7 +107,15 @@
                 uh_id       => "uh-$id",
                 date_exp    => $date->epoch,
             });
-            $u->set_prop ('custom_usericon_individual' => $propval);
+            if ($u->prop ('custom_usericon_individual') ne $propval) {
+                $u->set_prop ('custom_usericon_individual' => $propval);
+
+                ## 'deliver' individual userhead
+                my $uh_fs = LJ::FileStore->get_path_info ( path => "/userhead/".$id );
+                my $url = $LJ::FILEPREFIX."/userhead/".$id;
+                $url .= "?v=".$uh_fs->{'change_time'} if $uh_fs->{'change_time'};
+                $u->set_prop ('custom_usericon' => $url);
+            }
         }
     }
 }

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