summaryrefslogtreecommitdiff
path: root/inc/plugin.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2014-07-04 15:40:27 +0200
committerAndreas Gohr <andi@splitbrain.org>2014-07-04 15:40:27 +0200
commit33938e62c8806038b31429c06004f2d97843bc32 (patch)
tree90f2b1b544bf9331164bbe8f57a0519db270e641 /inc/plugin.php
parentccbf42bee21e8ae3534ef5e1712a1a1ff2fc8c6f (diff)
parentca86c17e1b77515f6e03e1a95538dc547a9217ac (diff)
downloadrpg-33938e62c8806038b31429c06004f2d97843bc32.tar.gz
rpg-33938e62c8806038b31429c06004f2d97843bc32.tar.bz2
Merge branch 'oldpluginshasnoGetinfo' of git://github.com/splitbrain/dokuwiki into pull-request-709
* 'oldpluginshasnoGetinfo' of git://github.com/splitbrain/dokuwiki: Reformat getInfo function Improve missing plugin.info.txt message.
Diffstat (limited to 'inc/plugin.php')
-rw-r--r--inc/plugin.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/inc/plugin.php b/inc/plugin.php
index e0112ef56..fd19ba668 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',
);
}