diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-11-11 21:34:37 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-11-11 21:34:37 +0100 |
commit | d4e9d5c7d1ec74172b46a130352a41765f1fec6a (patch) | |
tree | 1c1af64bf5d6d68753bc352fb29e5b39ef9f677e /inc/plugin.php | |
parent | 4bf3df7c70a3260fd2d9d78b0fe37d3519ed7f65 (diff) | |
download | rpg-d4e9d5c7d1ec74172b46a130352a41765f1fec6a.tar.gz rpg-d4e9d5c7d1ec74172b46a130352a41765f1fec6a.tar.bz2 |
More flexible plugin packages FS#1746
Ignore-this: 252bb5a42965ed045221c0544136aa62
darcs-hash:20091111203437-7ad00-86f06d842b3bec22641a637cb09dbc666a42ca2d.gz
Diffstat (limited to 'inc/plugin.php')
-rw-r--r-- | inc/plugin.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/plugin.php b/inc/plugin.php index 54d2580e9..364534739 100644 --- a/inc/plugin.php +++ b/inc/plugin.php @@ -30,7 +30,10 @@ class DokuWiki_Plugin { * url - Website with more information on the plugin (eg. syntax description) */ function getInfo(){ - trigger_error('getInfo() not implemented in '.get_class($this), E_USER_WARNING); + $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); } // plugin introspection methods |