[pmwiki-users] Problem with Cookbook CommentBox and beta 32
Patrick R. Michaud
pmichaud at pobox.com
Wed Apr 27 10:20:06 CDT 2005
On Wed, Apr 27, 2005 at 03:02:04PM +0100, Ian Barton wrote:
> Thanks. By editing the following:
>
> function HandleCommentPost($pagename) {
> global $_POST,$JournalPattern,$DiaryPattern;
> global $AuthFunction,$oAuthFunction;
> //SDV($AuthFunction,'BasicAuth');
> SDV($AuthFunction,'PmWikiAuth');
>
> I have fixed it. I'll update the Wiki page, but first is there a way of
> determining which version of PmWiki is running? If I just change the
> code, it will break the script for people with earlier versions.
>
> I want to be able to do something like:
>
> ifdef (PmWiki_Ver < xxx.yyy)
> SDV($AuthFunction,'BasicAuth');
> else
> SDV($AuthFunction,'PmWikiAuth');
if (function_exists('PmWikiAuth'))
SDV($AuthFunction, 'PmWikiAuth');
else
SDV($AuthFunction, 'BasicAuth');
Sorry for all the confusion/difficulty this has caused, I guarantee it's not
likely to occur again anytime soon.
Pm
More information about the pmwiki-users
mailing list