madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r20399: LJSUP-10205: There are some error on upd...

Committer: sbelyaev
LJSUP-10205: There are some error on update.bml when you open it as non-autorized
U   trunk/cgi-bin/LJ/Widget/EntryForm.pm
Modified: trunk/cgi-bin/LJ/Widget/EntryForm.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-20 13:56:26 UTC (rev 20398)
+++ trunk/cgi-bin/LJ/Widget/EntryForm.pm	2011-10-20 14:34:46 UTC (rev 20399)
@@ -847,7 +847,7 @@
                 }   
             };
 
-            my $disabled = !($remote->can_manage($journalu) || 0);
+            my $disabled = $remote ? !($remote->can_manage($journalu) || 0) : 0;
             return '' if $disabled;
 
             my $selected = $is_checked->();
@@ -862,15 +862,17 @@
                 'label' => "",
             });
 
+            my $help = LJ::help_icon_html('sticky_entry');
             my $sticky_exists = $journalu ? $journalu->has_sticky_entry && !$selected : undef;
             my $sticky_text = $sticky_exists ? $BML::ML{'entryform.sticky_replace.edit'} :
                                                $BML::ML{'entryform.sticky.edit'};
             return qq{$sticky_check <label for='sticky_type' id='sticky_type_label' class='right options'>
                    $sticky_text
-                </label>};
+                </label>$help};
         },
          'do_not_add' => sub {
             return '' unless LJ::is_enabled("delayed_entries");
+
             my $selected = $opts->{'opt_backdated'} || 0;
             my $dot_add_check = LJ::html_check({
                 'type' => "check",
@@ -882,11 +884,11 @@
                 $opts->{'prop_opt_preformatted'} || $opts->{'event_format'},
                 'label' => "",
             });
-
+            my $help = LJ::help_icon_html('backdate');
             my $added_to_rss_text = $BML::ML{'entryform.do_not_add_rss_friends'};
             return qq{$dot_add_check <label for='do_not_add_type' class='right options'>
                    $added_to_rss_text
-                </label>};
+                </label>$help};
         },
         'tags' => sub {
             return if $LJ::DISABLED{'tags'};

Tags: livejournal, madeon, pm, sbelyaev
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