[pmwiki-users] Version Detection for skin.php
Patrick R. Michaud
pmichaud at pobox.com
Thu Aug 25 14:47:16 CDT 2005
On Thu, Aug 25, 2005 at 04:30:42AM -0700, H. Fox wrote:
> How would I do
>
> if (version is older than 2.0.beta53) {
> something
> } else {
> something else
> }
>
> in skin.php?
There's not a trivially simple mechanism for doing this,
although I've been thinking about adding one. At the moment
the best I can offer is the $Version string, which will
look like "pmwiki-2.0.beta53".
I've been thinking about introducing a $VersionNum variable
which will be guaranteed to have monotonically increasing
values, but there hasn't been much demand or need for it yet.
Pm
More information about the pmwiki-users
mailing list