Skip to content

Commit

Permalink
Item10626: Prevent auto-vivication of $Foswiki::cfg{Plugins}{TWikiCom…
Browse files Browse the repository at this point in the history
…patibilityPlugin}

git-svn-id: http://svn.foswiki.org/branches/Release01x01@11448 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Apr 12, 2011
1 parent af39951 commit 429c850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/lib/Foswiki/Store/VC/Store.pm
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ sub webExists {
# Foswiki ships with TWikiCompatibilityPlugin but if it is disabled we
# do not want the TWiki web to appear as a valid web to anyone.
if ( $web eq 'TWiki' ) {
unless ( defined ( $Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Enabled} )
unless ( exists $Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}
&& defined $Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Enabled}
&& $Foswiki::cfg{Plugins}{TWikiCompatibilityPlugin}{Enabled} == 1 ) {
return 0;
}
Expand Down

0 comments on commit 429c850

Please sign in to comment.