[Jaws-commits] r12383 - trunk/jaws/html/gadgets/Jms

afz at jaws-project.com afz at jaws-project.com
Sun Jan 8 16:23:01 UTC 2012


Author: afz
Date: 2012-01-08 16:23:00 +0000 (Sun, 08 Jan 2012)
New Revision: 12383

Modified:
   trunk/jaws/html/gadgets/Jms/AdminModel.php
Log:
use LoadPlugin method

Modified: trunk/jaws/html/gadgets/Jms/AdminModel.php
===================================================================
--- trunk/jaws/html/gadgets/Jms/AdminModel.php	2012-01-08 16:22:28 UTC (rev 12382)
+++ trunk/jaws/html/gadgets/Jms/AdminModel.php	2012-01-08 16:23:00 UTC (rev 12383)
@@ -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