Skip to content

Commit

Permalink
Item8783: Typo in if statement prevented ZonePlugin from doing the mo…
Browse files Browse the repository at this point in the history
…nkey patch

git-svn-id: http://svn.foswiki.org/trunk@6960 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Mar 28, 2010
1 parent 0835569 commit a9ee91f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ZonePlugin/lib/Foswiki/Plugins/ZonePlugin.pm
Expand Up @@ -35,10 +35,11 @@ our $translationToken = "\03";

# monkey-patch API ###########################################################
BEGIN {
if ($Foswiki::cfg{Plugins}{ZonePlugin}{Enabled} && !defined(\&Foswiki::Func::addToZone)) {
if ($Foswiki::cfg{Plugins}{ZonePlugin}{Enabled} && !defined(&Foswiki::Func::addToZone)) {
no warnings 'redefine';
*Foswiki::Func::addToZone = \&Foswiki::Plugins::ZonePlugin::addToZone;
*Foswiki::Func::addToHEAD = \&Foswiki::Plugins::ZonePlugin::addToHead;
use warnings 'redefine';
} else {
#print STDERR "suppressing monkey patching via ZonePlugin\n";
}
Expand Down

0 comments on commit a9ee91f

Please sign in to comment.