summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-09-30 22:11:33 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-09-30 22:11:33 +0200
commitd0a27cb03cdfea95e402e7896ea446c4d45b5942 (patch)
tree1c6fca1a13ae1674f2309ad291af0f44e74418c4
parent009768124df70258806ec3120189432d1b2bb912 (diff)
downloadrpg-d0a27cb03cdfea95e402e7896ea446c4d45b5942.tar.gz
rpg-d0a27cb03cdfea95e402e7896ea446c4d45b5942.tar.bz2
don't use fullpath() before initialized
darcs-hash:20070930201133-7ad00-a35a6c40f880116009efd9e50cb002bd75733369.gz
-rw-r--r--doku.php2
-rw-r--r--feed.php2
-rw-r--r--install.php2
-rw-r--r--lib/exe/ajax.php2
-rw-r--r--lib/exe/css.php2
-rw-r--r--lib/exe/detail.php2
-rw-r--r--lib/exe/fetch.php2
-rw-r--r--lib/exe/indexer.php2
-rw-r--r--lib/exe/js.php2
-rw-r--r--lib/exe/mediamanager.php2
-rw-r--r--lib/exe/opensearch.php2
-rw-r--r--lib/exe/spellcheck.php2
-rw-r--r--lib/exe/xmlrpc.php2
13 files changed, 13 insertions, 13 deletions
diff --git a/doku.php b/doku.php
index 55db77e99..9ee99353a 100644
--- a/doku.php
+++ b/doku.php
@@ -8,7 +8,7 @@
// xdebug_start_profiling();
- 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/events.php');
diff --git a/feed.php b/feed.php
index bb23381b7..b632918d4 100644
--- a/feed.php
+++ b/feed.php
@@ -6,7 +6,7 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
- 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/events.php');
diff --git a/install.php b/install.php
index 575af1b5b..bf8bccea2 100644
--- a/install.php
+++ b/install.php
@@ -5,7 +5,7 @@
* @author Chris Smith <chris@jalakai.co.uk>
*/
-if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__)).'/');
+if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/');
if(!defined('DOKU_CONF')) define('DOKU_CONF',DOKU_INC.'conf/');
if(!defined('DOKU_LOCAL')) define('DOKU_LOCAL',DOKU_INC.'conf/');
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 <andi@splitbrain.org>
*/
-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 @@
<?php
- if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/');
+ if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
define('DOKU_MEDIADETAIL',1);
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/common.php');
diff --git a/lib/exe/fetch.php b/lib/exe/fetch.php
index 031edd274..71ec2870b 100644
--- a/lib/exe/fetch.php
+++ b/lib/exe/fetch.php
@@ -6,7 +6,7 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
- 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 <andi@splitbrain.org>
*/
-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 <andi@splitbrain.org>
*/
-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 @@
<?php
- if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/');
+ if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
define('DOKU_MEDIAMANAGER',1);
require_once(DOKU_INC.'inc/init.php');
require_once(DOKU_INC.'inc/lang/en/lang.php');
diff --git a/lib/exe/opensearch.php b/lib/exe/opensearch.php
index eda32e14d..f16b4f681 100644
--- a/lib/exe/opensearch.php
+++ b/lib/exe/opensearch.php
@@ -8,7 +8,7 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
-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 @@
<?php
-if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../../').'/');
+if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
// fix when '<?xml' isn't on the very first line
if(isset($HTTP_RAW_POST_DATA)) $HTTP_RAW_POST_DATA = trim($HTTP_RAW_POST_DATA);