[pmwiki-users] Problem with Cookbook CommentBox and beta 32

Radu radu at monicsoft.net
Wed Apr 27 09:20:40 CDT 2005


Use the $Version string. I think Pm changed the auth function somewhere in
$Version="pmwiki-2.0.beta29" or thereabouts. One of those versions I didn't 
get to install cos he's such a quick releaser :)

At 10:02 AM 4/27/2005, 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');
>
>Ian.

Cheers,
Radu
(www.monicsoft.net) 




More information about the pmwiki-users mailing list