Skip to content
Snippets Groups Projects
Commit da682d4e authored by Esther Brunner's avatar Esther Brunner
Browse files

error reporting for plugins turned on once again; checks if file exists

darcs-hash:20050902145953-283c4-d03ea404000d8b307d91b678f3ed3fc1a0ebac15.gz
parent b7551a6d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment