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

[livejournal] r17827: LJSUP-7457. Userheads are only for perso...

Committer: gprochaev
LJSUP-7457. Userheads are only for personal journals.

U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2010-11-30 08:41:57 UTC (rev 17826)
+++ trunk/htdocs/manage/profile/index.bml	2010-11-30 08:57:15 UTC (rev 17827)
@@ -899,13 +899,16 @@
         }
 
         ## save the changed userhead
-        if ($POST{'uh_id'} eq 'default') {
-            $u->set_custom_usericon (undef);
-        } else {
-            my $uh = LJ::UserHead->get_userhead ($POST{'uh_id'});
-            $u->set_custom_usericon ($uh->get_uh_img)
-                if $uh;
-         }
+        ## userheads are only for personal journals
+        if ($u->is_personal) {
+            if ($POST{'uh_id'} eq 'default') {
+                $u->set_custom_usericon (undef);
+            } else {
+                my $uh = LJ::UserHead->get_userhead ($POST{'uh_id'});
+                $u->set_custom_usericon ($uh->get_uh_img)
+                    if $uh;
+            }
+        }
 
         # actions if email changed
         if ($email_changed) {

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