include preload.php without error suppression (but after existence check)

darcs-hash:20090122080426-f07c6-c2e4cb107f9d07f333a9fe295f5df5bd9d3fb15f.gz
This commit is contained in:
Chris Smith 2009-01-22 09:04:26 +01:00
parent 062075650f
commit e6266454ce
1 changed files with 2 additions and 1 deletions

View File

@ -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__).'/../').'/');