Item10602: Typo in access to Foswiki configuration parameters.

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: EasyMacroPlugin
Branches:
Reported By: DiabJerius
Waiting For:
Last Change By: MichaelDaum
The EasyMacroPlugin configuration information is incorrectly being accessed as

$Foswiki::cfg{EasyMacroPlugin}

It should instead be
$Foswiki::cfg{Plugins}{EasyMacroPlugin}

The attached patch fixes this.

-- DiabJerius - 05 Apr 2011

Hm, no. The Confic.spec file defines them to be cfg{EasyMacroPlugin} ... not within the {Plugins} hash.

-- MichaelDaum - 05 Apr 2011

Sorry, I got confused. Please ignore.

-- DiabJerius - 05 Apr 2011

Well, I found out at least one reason for my confusion. I can't find a Config.spec file for the plugin. It's not in the tarball and (thus) there are no plugin specific options which appear in the configuration section.

-- DiabJerius - 06 Apr 2011

I found it in the SVN repository; a packaging problem perhaps?

-- DiabJerius - 06 Apr 2011

BTW, thanks for this plugin; it really cleans up messy code and makes it easier for typical users.

-- DiabJerius - 06 Apr 2011

Added Config.spec to package now.

-- MichaelDaum - 18 Jul 2011

ItemTemplate edit

Summary Typo in access to Foswiki configuration parameters.
ReportedBy DiabJerius
Codebase 1.1.2
SVN Range
AppliesTo Extension
Component EasyMacroPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins EasyMacroPlugin:8481ae9bcc53
TargetRelease n/a
ReleasedIn n/a
I Attachment Action Size Date Who Comment
cfg.patchpatch cfg.patch manage 1 K 05 Apr 2011 - 17:21 DiabJerius  
Topic revision: r5 - 18 Jul 2011, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy