From d0a27cb03cdfea95e402e7896ea446c4d45b5942 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 30 Sep 2007 22:11:33 +0200 Subject: don't use fullpath() before initialized darcs-hash:20070930201133-7ad00-a35a6c40f880116009efd9e50cb002bd75733369.gz --- lib/exe/ajax.php | 2 +- lib/exe/css.php | 2 +- lib/exe/detail.php | 2 +- lib/exe/fetch.php | 2 +- lib/exe/indexer.php | 2 +- lib/exe/js.php | 2 +- lib/exe/mediamanager.php | 2 +- lib/exe/opensearch.php | 2 +- lib/exe/spellcheck.php | 2 +- lib/exe/xmlrpc.php | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/exe') diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php index 08994e81f..7591ea1d5 100644 --- a/lib/exe/ajax.php +++ b/lib/exe/ajax.php @@ -11,7 +11,7 @@ if(!count($_POST) && $HTTP_RAW_POST_DATA){ parse_str($HTTP_RAW_POST_DATA, $_POST); } -if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); require_once(DOKU_INC.'inc/init.php'); require_once(DOKU_INC.'inc/common.php'); require_once(DOKU_INC.'inc/pageutils.php'); diff --git a/lib/exe/css.php b/lib/exe/css.php index bab24b257..e550ab206 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -6,7 +6,7 @@ * @author Andreas Gohr */ -if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); if(!defined('NOSESSION')) define('NOSESSION',true); // we do not use a session or authentication here (better caching) require_once(DOKU_INC.'inc/init.php'); require_once(DOKU_INC.'inc/pageutils.php'); diff --git a/lib/exe/detail.php b/lib/exe/detail.php index 263dd30cb..c42854442 100644 --- a/lib/exe/detail.php +++ b/lib/exe/detail.php @@ -1,5 +1,5 @@ */ - if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); + if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); define('DOKU_DISABLE_GZIP_OUTPUT', 1); require_once(DOKU_INC.'inc/init.php'); require_once(DOKU_INC.'inc/common.php'); diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index a3d953740..04229edcd 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -5,7 +5,7 @@ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) * @author Andreas Gohr */ -if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); define('DOKU_DISABLE_GZIP_OUTPUT',1); require_once(DOKU_INC.'inc/init.php'); require_once(DOKU_INC.'inc/auth.php'); diff --git a/lib/exe/js.php b/lib/exe/js.php index 9315e7783..17f9c5ae1 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -6,7 +6,7 @@ * @author Andreas Gohr */ -if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); if(!defined('NOSESSION')) define('NOSESSION',true); // we do not use a session or authentication here (better caching) if(!defined('NL')) define('NL',"\n"); require_once(DOKU_INC.'inc/init.php'); diff --git a/lib/exe/mediamanager.php b/lib/exe/mediamanager.php index a1f00660d..9b0adcb14 100644 --- a/lib/exe/mediamanager.php +++ b/lib/exe/mediamanager.php @@ -1,5 +1,5 @@ */ -if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); if(!defined('NOSESSION')) define('NOSESSION',true); // we do not use a session or authentication here (better caching) if(!defined('NL')) define('NL',"\n"); require_once(DOKU_INC.'inc/init.php'); diff --git a/lib/exe/spellcheck.php b/lib/exe/spellcheck.php index 8ed116b8b..01c70832e 100644 --- a/lib/exe/spellcheck.php +++ b/lib/exe/spellcheck.php @@ -46,7 +46,7 @@ if(!count($_POST) && $HTTP_RAW_POST_DATA){ parse_str($HTTP_RAW_POST_DATA, $_POST); } -if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); require_once (DOKU_INC.'inc/init.php'); session_write_close(); require_once (DOKU_INC.'inc/utf8.php'); diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index f2b9a2b7d..51d9778b8 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -1,5 +1,5 @@