Skip to content

Commit

Permalink
Item14530: Fix Query.pm to show correct "File System Paths"
Browse files Browse the repository at this point in the history
- Fix bootstrapping values of $Foswiki::cfg{$bsdir} in function getspec()
  • Loading branch information
Will Le committed Nov 26, 2017
1 parent 2861314 commit a83e2f0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/lib/Foswiki/Configure/Query.pm
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,13 @@ sub getspec {

# If we're bootstrapping, retain the values calculated in
# the bootstrap process. They are almost certainly wrong,
# but are a better starting point that the .spec defaults.
# but are a better starting point than the .spec defaults.
%Foswiki::cfg = %$upper_cfg;

# Reset all bootstrap subdirs to be relative to RootDir
foreach my $bsdir ( keys $Foswiki::cfg{BSDIRS} ) {
eval "\$Foswiki::cfg$bsdir = \$Foswiki::cfg{BSDIRS}->{'$bsdir'}";
}
}
Foswiki::Configure::Load::readConfig( 1, 1 );

Expand Down

0 comments on commit a83e2f0

Please sign in to comment.