[dokuwiki] Re: Linking to internal pages with actions

  • From: Andreas Haerter <list+dokuwiki@xxxxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 10 Feb 2011 04:04:59 +0100

Am 10.02.2011 01:56, schrieb Myron Turner:
> On 2/9/2011 5:28 PM, Andreas Haerter wrote:
>> Which is the best way for detecting the running DokuWiki version to make
>> it possible to use this without loosing compatibility to older versions?
>>
> You could simply check for the existence of $conf['fnencode'], which was
> introduced with Anteater. Or more comprehensively, you can create a
> timestamp for Anteater based on its distribution date and test to see if
> function_exists('getVersionData') and if so, get the current
> distribution's date, then compare the timestamps to see if the current
> is >= anteater.  The latter is just a fail-safe in case 'fnencode' is
> changed. Use php's mktime() to create the timestamps.

OK, I'm going to write something. I just wanted to make sure I'm not
missing a recommended ways. Thanks for your input :-)

-- 
Andreas <http://blog.andreas-haerter.com>

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Other related posts: