--- Func.pm.orig 2004-10-14 13:57:00.990770000 +0200 +++ Func.pm 2004-10-14 13:59:42.820747000 +0200 @@ -407,8 +407,9 @@ sub getPluginPreferencesFlag { my( $theKey ) = @_; - my $value = getPluginPreferencesValue( $theKey ); - return TWiki::Prefs::formatAsFlag($value); + my $package = caller; + $package =~ s/.*:://; # strip off TWiki::Plugins:: prefix + return TWiki::Prefs::getPreferencesFlag( "\U$package\E_$theKey" ); } # =========================