[Pmwiki-users] Need help ($UploadUrlFmt)
Steven Leite
steven_leite
Sun Jun 20 01:50:12 CDT 2004
If I do this:
global $UploadUrlFmt
or this:
$UploadUrlFmt = FmtPageName('$UploadUrlFmt', $pagename);
I get this:
./uploads
Which, on my system, resolves to:
localhost/wikis/default/index.php/Main/uploads
which is a bad thing when I'm really trying to get it to resolve to:
localhost/wikis/default/uploads/
I can fix it by doing this:
$UploadUrlFmt = preg_replace("#/[^/]*\$#", "/$UploadDir", $ScriptUrl, 1);
But I was wondering if there is an easier/better way? I don't like to re-define PmWiki variables forcibly unless I have to.
Thanks,
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users_pmichaud.com/attachments/20040620/143c8b94/attachment.htm
More information about the pmwiki-users
mailing list