[Jaws-commits] r12382 - branches/0.8/html/gadgets/Jms

afz at jaws-project.com afz at jaws-project.com
Sun Jan 8 16:22:28 UTC 2012


Author: afz
Date: 2012-01-08 16:22:28 +0000 (Sun, 08 Jan 2012)
New Revision: 12382

Modified:
   branches/0.8/html/gadgets/Jms/AdminModel.php
Log:
use LoadPlugin method

Modified: branches/0.8/html/gadgets/Jms/AdminModel.php
===================================================================
--- branches/0.8/html/gadgets/Jms/AdminModel.php	2012-01-08 12:52:19 UTC (rev 12381)
+++ branches/0.8/html/gadgets/Jms/AdminModel.php	2012-01-08 16:22:28 UTC (rev 12382)
@@ -113,6 +113,11 @@
                     continue;
                 }
 
+                $pInfo = $GLOBALS['app']->LoadPlugin($plugin);
+                if (Jaws_Error::IsError($pInfo)) {
+                    continue;
+                }
+
                 $ei = explode(',', $GLOBALS['app']->Registry->Get('/plugins/parse_text/enabled_items'));
                 $ei = str_replace(' ', '', $ei);
                 $pInstalled = in_array($plugin, $ei);



More information about the Jaws-commits mailing list