01162: Separate Upload URLs per Wiki
Description:
Separate upload URLs (not directories!) come in handy if you have a shared Pub URL for several wikis, but want/need separate upload URLs for them (e.g. public and private wikis).
Attached is a patch, that adds $UploadURL for this.
If $UploadURL is not set, then it defaults to $PubDirUrl
, hence no change in the default behaviour.
I'm running this change since version pmwiki 2.1.27.
Attach:pmwiki_uploadurl.patch.txt
Hi. Why can't you just set $UploadUrlFmt
in your config.php? See also $FarmPubDirUrl
.--Petko January 10, 2010, at 01:47 PM
Setting $UploadUrlFmt
directly works, thanks. A format string is not a path to me, that's why I didn't thought about this.
P.S.: .patch is not allowed, but it should be for a bug reporting system. .diff should be allowed too. Enabled, thanks. --Petko