Skip to content

Commit

Permalink
Item12952: fix silly bug in save
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed Aug 30, 2014
1 parent b47016a commit 50de5bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/lib/Foswiki/Configure/Wizards/Save.pm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ sub save {

# Sort keys so it's possible to diff LSC files.
local $Data::Dumper::Sortkeys = 1;
die "FUCK" if $Foswiki::cfg{DataDir} eq 'NOT SET';

my ( @backups, $backup );

my $old_content;
Expand Down Expand Up @@ -136,9 +136,8 @@ sub save {
last;
}

if ( defined $old_content ) {
if ( defined $old_content && $old_content =~ /^(.*)$/s ) {
local %Foswiki::cfg;
$old_content =~ /^(.*)$/;
eval $1;
if ($@) {
$reporter->ERROR("Error reading existing LocalSite.cfg: $@");
Expand Down

0 comments on commit 50de5bd

Please sign in to comment.