Skip to content
Snippets Groups Projects
Commit 445840b6 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

do not use error supression but check for file existance in plugin controller

Ignore-this: b796ce104bb86a05e8bca1c900ef99d8

darcs-hash:20090220084815-7ad00-74aa7c875606a5dfdbd257caa56bf092152e3019.gz
parent 1b11c097
No related branches found
No related tags found
Loading
......@@ -79,7 +79,11 @@ class Doku_Plugin_Controller {
$dir = $this->get_directory($plugin);
$file = $component ? "$type/$component.php" : "$type.php";
if (!@include_once(DOKU_PLUGIN."$dir/$file")) {
if(!is_file(DOKU_PLUGIN."$dir/$file")){
return null;
}
if (!include_once(DOKU_PLUGIN."$dir/$file")) {
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