예제 #1
0
 /**
  * Return true if the given Gallery 2 module is active.
  */
 static function g2_module_active($module)
 {
     static $plugin_list;
     if (!$plugin_list) {
         $plugin_list = g2(GalleryCoreApi::fetchPluginList("module"));
     }
     return @$plugin_list[$module]["active"];
 }