From a3072bd94f447b5c485c62f538d84701b16b8683 Mon Sep 17 00:00:00 2001 From: Myron Turner Date: Wed, 30 Sep 2015 11:45:17 -0500 Subject: [PATCH] fixed fatal error: failure to find getInfo in plugins where not implemented --- plugin.info.txt | 2 +- syntax.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin.info.txt b/plugin.info.txt index 73697e6..d47301f 100755 --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base credits author Myron Turner email turnermm02@shaw.ca -date 2014-05-28 +date 2015-09-30 name Credits Plugin desc Configurable Display of Plugin Credits url http://www.dokuwiki.org/plugin:credits diff --git a/syntax.php b/syntax.php index 0efed62..0032236 100755 --- a/syntax.php +++ b/syntax.php @@ -175,7 +175,8 @@ function store_plugins($type=""){ if(!$type) return; $plugins = plugin_list($type); foreach($plugins as $p){ - if (!$po =& plugin_load($type,$p)) continue; + if (!$po = plugin_load($type,$p)) continue; + if(!method_exists($po,'getInfo')) continue; $info = $po->getInfo(); $this->plugins[$info['name']] = $info; unset($po);