summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorChris Smith <chris.eureka@jalakai.co.uk>2009-01-22 09:04:26 +0100
committerChris Smith <chris.eureka@jalakai.co.uk>2009-01-22 09:04:26 +0100
commite6266454ce9de722c81e320726bffcdc2fecfa28 (patch)
treeb1708742373c48f65d4b40e860417a40902435ea /inc/init.php
parent062075650ff3aa2f63e63ee85f836f89438a1c28 (diff)
downloadrpg-e6266454ce9de722c81e320726bffcdc2fecfa28.tar.gz
rpg-e6266454ce9de722c81e320726bffcdc2fecfa28.tar.bz2
include preload.php without error suppression (but after existence check)
darcs-hash:20090122080426-f07c6-c2e4cb107f9d07f333a9fe295f5df5bd9d3fb15f.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php
index 6ed060317..46576e000 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -11,7 +11,8 @@
define('DOKU_START_TIME', delta_time());
// if available load a preload config file
- @include(fullpath(dirname(__FILE__)).'/preload.php');
+ $preload = fullpath(dirname(__FILE__)).'/preload.php';
+ if (@file_exists($preload)) include($preload);
// define the include path
if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').'/');