diff --git a/inc/plugin.php b/inc/plugin.php index e0112ef5684208412decff2972b21c9637933a3f..fd19ba6680929efc1e52d42af552a3dba5ac9856 100644 --- a/inc/plugin.php +++ b/inc/plugin.php @@ -30,18 +30,18 @@ class DokuWiki_Plugin { * desc - Short description of the plugin (Text only) * url - Website with more information on the plugin (eg. syntax description) */ - function getInfo(){ - $parts = explode('_',get_class($this)); - $info = DOKU_PLUGIN.'/'.$parts[2].'/plugin.info.txt'; + function getInfo() { + $parts = explode('_', get_class($this)); + $info = DOKU_PLUGIN . '/' . $parts[2] . '/plugin.info.txt'; if(@file_exists($info)) return confToHash($info); - 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); + msg('getInfo() not implemented in ' . get_class($this) . + ' and ' . $info . ' not found.<br />Do you have installed the last version of the plugin? ' . + 'If that is the case, 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', + 'date' => '0000-00-00', + 'name' => $parts[2] . ' plugin', ); }