quentusrex
2008-10-31 fd8e2b5317e8c43aa476a57bbf555c444049f536
server/lib/classes/plugins.inc.php
@@ -34,13 +34,16 @@
   var $subscribed_events = array();
   
   /*
    This function is called to load the plugins from the plugins-available folder
    This function is called to load the plugins from the plugins-enabled or the plugins-core folder
   */
   
   function loadPlugins() {
   function loadPlugins($type) {
      global $app,$conf;
      $subPath = 'plugins-enabled';
      if ($type == 'core') $subPath = 'plugins-core';
      
      $plugins_dir = $conf["rootpath"].$conf["fs_div"]."plugins-enabled".$conf["fs_div"];
      $plugins_dir = $conf["rootpath"].$conf["fs_div"].$subPath.$conf["fs_div"];
      $tmp_plugins = array();
      
      if (is_dir($plugins_dir)) {