Skip to content

Commit

Permalink
Item12257: Don't override PlainFile unless really needed
Browse files Browse the repository at this point in the history
The WarningFileName should not only be defined, but be set to a non-null
value before falling back to Compatilbility logger.

git-svn-id: http://svn.foswiki.org/trunk@16066 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Nov 20, 2012
1 parent 3cb97ec commit efe4bd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki.pm
Expand Up @@ -1691,7 +1691,8 @@ sub new {
$ENV{TEMP} = $Foswiki::cfg{TempfileDir};
$ENV{TMP} = $Foswiki::cfg{TempfileDir};

if ( defined $Foswiki::cfg{WarningFileName}
if ( defined $Foswiki::cfg{WarningFileName}
&& $Foswiki::cfg{WarningFileName}
&& $Foswiki::cfg{Log}{Implementation} eq 'Foswiki::Logger::PlainFile' )
{

Expand Down

0 comments on commit efe4bd6

Please sign in to comment.