Skip to content

Commit

Permalink
Item12952: fix wizard, and correct section path
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Aug 29, 2014
1 parent 2c4804f commit 9bd301f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/lib/Foswiki/Configure/Item.pm
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ sub getSectionPath {
my $this = shift;
my @path = ();

if ( $this->{parent} ) {
@path = $this->{parent}->getSectionPath();
push( @path, $this->{parent}->{headline} )
if $this->{parent}->{headline};
if ( $this->{_parent} ) {
@path = $this->{_parent}->getSectionPath();
push( @path, $this->{_parent}->{headline} )
if $this->{_parent}->{headline};
}
return @path;
}
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Configure/Wizards/SendTestEmail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ sub send {
return 1 unless ( $Foswiki::cfg{EnableEmail} );

# A non-null value is required for this to make sense
return unless $this->getCfg();
return unless $Foswiki::cfg{WebMasterEmail};

# Expand a couple of required config settings for
# Foswiki::Net::sendEmail after making sure we can restore them.
Expand Down

0 comments on commit 9bd301f

Please sign in to comment.