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

give useful message for broken plugins FS#2068

parent 24ea6500
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,15 @@ class DokuWiki_Plugin {
$parts = explode('_',get_class($this));
$info = DOKU_PLUGIN.'/'.$parts[2].'/plugin.info.txt';
if(@file_exists($info)) return confToHash($info);
trigger_error('getInfo() not implemented in '.get_class($this).' and '.$info.' not found', E_USER_WARNING);
msg('getInfo() not implemented in '.get_class($this).
' and '.$info.' not found.<br />This is a bug in the '.
$parts[2].' plugin and should be reported to the '.
'plugin author.',-1);
return array(
'date' => '0000-00-00',
'name' => $parts[2].' plugin',
);
}
// plugin introspection methods
......
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