[pmwiki-users] quicktime recipe problem
a at plus1plus1plus.org
Sun Dec 20 02:43:25 CST 2009
well, this seems to work:
if(!strpos($path,"./")) $filepath = FmtPageName("$UploadFileFmt/".
else $filepath = FmtPageName("$UploadDir/".str_replace('./','/',
would appreciate any feedback if there's a more elegant solution
On 20 Dec 2009, at 12:28 AM, adam overton wrote:
> i'm using the quicktime recipe, and i'm realizing that it won't
> allow me to embed files from AnotherGroup - for instance, the
> following works:
> (:quicktime Attach:myfile.mp3:)
> but this fails
> (:quicktime Attach:AnotherGroup./myfile.mp3:)
> this appears to be occuring b/c of a conditional in the quicktime
> $filepath = FmtPageName("$UploadFileFmt/".$path, $pagename);
> $FileUrl = LinkUpload($pagename, $imap, $path, $imap.$path, $imap.
> $path, "\$LinkUrl");
> if (!file_exists($filepath))
> return $FileUrl;
> $filepath is returning an incorrect path:
> i can think of a couple long ways around to correct this, but i'm
> wondering if anyone has a suggestion for a quick way to correct how
> $filepath & FmtPageName are executing?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users