From e6266454ce9de722c81e320726bffcdc2fecfa28 Mon Sep 17 00:00:00 2001 From: Chris Smith <chris.eureka@jalakai.co.uk> Date: Thu, 22 Jan 2009 09:04:26 +0100 Subject: [PATCH] include preload.php without error suppression (but after existence check) darcs-hash:20090122080426-f07c6-c2e4cb107f9d07f333a9fe295f5df5bd9d3fb15f.gz --- inc/init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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__).'/../').'/'); -- GitLab