Tags:
create new tag
view all tags

Bug: Small Typos in Plugins.pm

While investigating an odd problem I was having with a plugin, I noticed a couple of small typos in Plugins.pm. The only one that really makes a difference is the one that lists the $onceOnlyHandlers definition:

%onlyOnceHandlers = ( 'registrationHandler'     => 1,
                      'writeHeaderHandler'      => 1,
                      'redirectCgiQueryHandler' => 1,
                      'getSessionValueHandler'  => 1,
                      'getSessionValueHandler'  => 1 );

Notice that getSessionValueHandler is defined twice. The second one should be setSessionValueHandler.

Otherwise, there is a comment in setSessionValueHandler which uses a . instead of a ::.

I've included the rcsdiff below. This is based off of the standard Plugins.pm that comes with the February 2003 release of TWiki.

Test case

Plugins.pm
===================================================================
RCS file: Plugins.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -r1.1 -r1.2
55c55
<                       'getSessionValueHandler'  => 1 );
---
>                       'setSessionValueHandler'  => 1 );
394c394
<     # Called by TWiki.setSessionValue
---
>     # Called by TWiki::setSessionValue

Environment

TWiki version: Februrary 2003
TWiki plugins: Those that use setSessionValueHandler
Server OS: Linux
Web server: Apache
Perl version: 5.6.0
Client OS: Windows 2000
Web Browser: MSIE6.0

-- TedPavlic - 17 Jul 2003

Follow up

Fix record

Now fixed and in TWikiAlphaRelease.

-- PeterThoeny - 26 Jul 2003


Category: TWikiPatches
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-07-26 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.