From da682d4efe15ba703873b4989e0fdb895dd3f140 Mon Sep 17 00:00:00 2001 From: Esther Brunner <esther@kaffeehaus.ch> Date: Fri, 2 Sep 2005 16:59:53 +0200 Subject: [PATCH] error reporting for plugins turned on once again; checks if file exists darcs-hash:20050902145953-283c4-d03ea404000d8b307d91b678f3ed3fc1a0ebac15.gz --- inc/pluginutils.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/pluginutils.php b/inc/pluginutils.php index c8eed8555..67ce191a3 100644 --- a/inc/pluginutils.php +++ b/inc/pluginutils.php @@ -101,9 +101,11 @@ function &plugin_load($type,$name){ } //try to load the wanted plugin file - if(!@include_once(DOKU_PLUGIN."$name/$type.php")){ + if (file_exists(DOKU_PLUGIN."$name/$type.php")){ + include_once(DOKU_PLUGIN."$name/$type.php"); + }else{ list($plugin, $component) = preg_split("/_/",$name, 2); - if (!$component || !@include_once(DOKU_PLUGIN."$plugin/$type/$component.php")) { + if (!$component || !include_once(DOKU_PLUGIN."$plugin/$type/$component.php")) { return null; } } -- GitLab