Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r16152: LJSV-912 (ESN refactoring, part 1 // "Em...

Committer: ailyin
LJSV-912 (ESN refactoring, part 1 // "Email me copies of my comments"
should not be displayed to OpenID users)

U   trunk/htdocs/manage/settings/index.bml
Modified: trunk/htdocs/manage/settings/index.bml
===================================================================
--- trunk/htdocs/manage/settings/index.bml	2010-01-27 11:04:06 UTC (rev 16151)
+++ trunk/htdocs/manage/settings/index.bml	2010-01-27 11:05:57 UTC (rev 16152)
@@ -343,23 +343,26 @@
             'css_class' => 'my_account',
         });
 
-        $ret .= '<tbody class="opt_getselfemail"><tr><td colspan="6">';
         my $can_getselfemail = LJ::get_cap($u, 'getselfemail');
         my $value = $can_getselfemail ? $u->prop('opt_getselfemail') : 0;
 
-        my $label = $ML{'subscribe_interface.getselfemail'};
-        $label .= LJ::run_hook("upgrade_link", $u) unless $can_getselfemail;
+        if ($can_getselfemail || !$u->is_identity) {
+            $ret .= '<tbody class="opt_getselfemail"><tr><td colspan="6">';
 
-        $ret .= LJ::html_check({
-            'name' => 'opt_getselfemail',
-            'id' => 'opt_getselfemail',
-            'label' => $label,
-            'selected' => $value,
-            'disabled' => !$can_getselfemail,
-            'noescape' => 1,
-        });
-        $ret .= '</tr></td></tbody>';
+            my $label = $ML{'subscribe_interface.getselfemail'};
+            $label .= LJ::run_hook("upgrade_link", $u) unless $can_getselfemail;
 
+            $ret .= LJ::html_check({
+                'name' => 'opt_getselfemail',
+                'id' => 'opt_getselfemail',
+                'label' => $label,
+                'selected' => $value,
+                'disabled' => !$can_getselfemail,
+                'noescape' => 1,
+            });
+            $ret .= '</tr></td></tbody>';
+        }
+
         $ret .= $widget->render({
             'title' => $ML{'subscribe_interface.category.friends-and-communities'},
             'groups' => $set->extract_groups([

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