Skip to content

Commit

Permalink
fixed fatal error: failure to find getInfo in plugins where not imple…
Browse files Browse the repository at this point in the history
…mented
  • Loading branch information
turnermm committed Sep 30, 2015
1 parent abb799d commit a3072bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.info.txt
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a3072bd

Please sign in to comment.