[dokuwiki] Re: wiki farm

Jason Keltz wrote:

Uh oh. It looks like plugins account for many realpath references as well... (they all start by getting DOKU_INC)... would all plugins need to be patched as well? yipes.

if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');


This practice should be discouraged. The plugins included with DW now commence with the following lines

// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();


-- Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: