/** * Include the content of a gadget * @param string $requested The name of the gadget to include * */ static function IncludeGadget($requested) { global $config; if (!isset($config['gadgets'][$requested])) { return '{{Gadget Not Found: ' . htmlspecialchars($requested) . '}}'; } ob_start(); \gp\tool\Output::GetGadget($requested); return ob_get_clean(); }