diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-03-04 20:56:43 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-03-04 20:56:43 +0100 |
commit | 8d64d42d5876b358dcb69969a859ecb6cbcbf328 (patch) | |
tree | 2bd6622f4d2ac17c4787f352043c74071b0e11ec /inc | |
parent | 24ea6500cc5285aac7f02df7f535ea10f8f97729 (diff) | |
download | rpg-8d64d42d5876b358dcb69969a859ecb6cbcbf328.tar.gz rpg-8d64d42d5876b358dcb69969a859ecb6cbcbf328.tar.bz2 |
give useful message for broken plugins FS#2068
Diffstat (limited to 'inc')
-rw-r--r-- | inc/plugin.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/inc/plugin.php b/inc/plugin.php index 628ae39b0..ec94433b6 100644 --- a/inc/plugin.php +++ b/inc/plugin.php @@ -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 |