improve plugins debugging output
authorJeremy Laine <jeremy.laine@m4x.org>
Sat, 20 May 2006 22:18:46 +0000 (22:18 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Sat, 20 May 2006 22:18:46 +0000 (22:18 +0000)
include/Plugin/Editor.php
include/Plugins.php

index e6006b8..d018ccf 100644 (file)
@@ -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);
     // 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);
 
     // values
     $page->assign('show_params', $this->show_params);
index 181db12..c998925 100644 (file)
@@ -343,9 +343,6 @@ class Diogenes_Plugins
     if (is_array($plugentry))
       $plug_h->fromArray($plugentry);
 
     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;
   }
     
     return $plug_h;
   }
     
@@ -375,6 +372,7 @@ class Diogenes_Plugins
     {
       $trclass = $odd ? ' class="odd"' : '';
       $out .= "<tr><th colspan=\"2\">{$val['name']} v{$val['version']}</th></tr>\n";
     {
       $trclass = $odd ? ' class="odd"' : '';
       $out .= "<tr><th colspan=\"2\">{$val['name']} v{$val['version']}</th></tr>\n";
+      $out .= "<tr><td>status</td><td>{$val['status']}</td></tr>\n";
       if (isset($val['pos'])) {
         $out .= "<tr><td>position</td><td>{$val['pos']}</td></tr>\n";
       }
       if (isset($val['pos'])) {
         $out .= "<tr><td>position</td><td>{$val['pos']}</td></tr>\n";
       }