Skip to content

Commit

Permalink
Item14180: Don't fail if testing bootstrap on old foswiki
Browse files Browse the repository at this point in the history
Trying to be able to call the Bootstrap module from an older foswiki
for testing flexibility.
  • Loading branch information
gac410 committed Sep 10, 2016
1 parent 5eb4527 commit 8b8af5e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/lib/Foswiki/Configure/Bootstrap.pm
Expand Up @@ -383,8 +383,12 @@ sub _bootstrapStoreSettings {
# Detect the NFC / NDF normalization of the file system, and set
# NFCNormalizeFilenames if needed.
# SMELL: Really this should be done per web, both in data and pub.
my $nfcok =
Foswiki::Configure::FileUtil::canNfcFilenames( $Foswiki::cfg{DataDir} );
my $nfcok;
if ( Foswiki::Configure::FileUtil->can('canNfcFilenames') ) {
$nfcok =
Foswiki::Configure::FileUtil::canNfcFilenames(
$Foswiki::cfg{DataDir} );
}
if ( defined $nfcok && $nfcok == 1 ) {
print STDERR "AUTOCONFIG: Data Storage allows NFC filenames\n"
if (TRAUTO);
Expand Down

0 comments on commit 8b8af5e

Please sign in to comment.