• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

In Func.pm the my line for readAttachment shows as:

sub readAttachment { my( $meta, $name ) = @_;

The example in the pod for the function also shows the use of $meta.

$meta and $name are not used. @_ is passed into the Store.pm readAttachment which requires $web, $topic, $name and $rev.

The top of the pod documentation matches the actual call required.

While there is a work around - I found this very confusing writing my first plugin and was told the work around by a twiki core developer who was handily sitting next to me on the sofa at the time.


Thanks Pam. Doc fixed.

CC

ItemTemplate
Summary TWiki::Func::readAttachment my line shows wrong parameters
ReportedBy TWiki:Main.PamelaDuffy
Codebase 4.0.2, ~twiki4, ~develop
SVN Range Sat, 06 May 2006 build 10108
AppliesTo Engine
Component

Priority Urgent
CurrentState Closed
WaitingFor

Checkins 10302 10303
TargetRelease patch
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2006-05-24 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback