diff --git a/inc/pluginutils.php b/inc/pluginutils.php index c8eed85556b16c89efc664ce2cef4864017cf513..67ce191a341a91e28eb296419b6bbffd69f549a3 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; } }