From cbe74a8ec6d5f5955fd978f9f1f1b4bc18e6ed9d Mon Sep 17 00:00:00 2001 From: Jeremy Laine Date: Sat, 20 May 2006 22:18:46 +0000 Subject: [PATCH] improve plugins debugging output --- include/Plugin/Editor.php | 5 +++++ include/Plugins.php | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/Plugin/Editor.php b/include/Plugin/Editor.php index e6006b8..d018ccf 100644 --- a/include/Plugin/Editor.php +++ b/include/Plugin/Editor.php @@ -211,6 +211,11 @@ class Diogenes_Plugin_Editor { // next we add the inactive plugins $plugs = array_merge_recursive($rw_plugs_on, $rw_plugs_off); $page->assign('plugins', $plugs); + // debugging + foreach ($plugs as $p_type => $p_entries) + { + $globals->plugins->log = array_merge($globals->plugins->log, $p_entries); + } // values $page->assign('show_params', $this->show_params); diff --git a/include/Plugins.php b/include/Plugins.php index 181db12..c998925 100644 --- a/include/Plugins.php +++ b/include/Plugins.php @@ -343,9 +343,6 @@ class Diogenes_Plugins if (is_array($plugentry)) $plug_h->fromArray($plugentry); - $plug_log = $plug_h->toArray(); - //$pluglog['name'] = 'foo'; - array_push($this->log, $plug_log); return $plug_h; } @@ -375,6 +372,7 @@ class Diogenes_Plugins { $trclass = $odd ? ' class="odd"' : ''; $out .= "{$val['name']} v{$val['version']}\n"; + $out .= "status{$val['status']}\n"; if (isset($val['pos'])) { $out .= "position{$val['pos']}\n"; } -- 2.1.4