[pmwiki-users] Re: Version Detection for skin.php

chr at home.se chr at home.se
Fri Aug 26 13:01:56 CDT 2005


On Thu, 25 Aug 2005, H. Fox wrote:

> On 8/25/05, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > 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.

How about use the CVS keywords, e.g. $Revision: $?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr






More information about the pmwiki-users mailing list