diff --git a/var/Helper.php b/var/Helper.php index f9073d6a..cb43cf4c 100644 --- a/var/Helper.php +++ b/var/Helper.php @@ -21,6 +21,16 @@ class Helper return Typecho_Widget::widget('Widget_Options'); } + /** + * 获取Widget_Security对象 + * + * @return Widget_Security + */ + public static function security() + { + return Typecho_Widget::widget('Widget_Security'); + } + /** * 强行删除某个插件 *