diff --git a/functions.php b/functions.php index f9f9e3f..fcac211 100644 --- a/functions.php +++ b/functions.php @@ -8,7 +8,9 @@ require_once("lib/ThemeOptionRender.php"); require_once("lib/ThemeOption.php"); -error_reporting(0); +if (!defined('__TYPECHO_DEBUG__') || __TYPECHO_DEBUG__ == 0) { + error_reporting(0); +} if (isset($_GET["mod"])) { if ($_GET["mod"] === "search-xml") { diff --git a/index.php b/index.php index 89afebd..e20b189 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * * @package Material * @author 黎明余光 - * @version 3.2.2 + * @version 3.2.5 * @link https://blog.lim-light.com */ diff --git a/lib/ThemeOptionRender.php b/lib/ThemeOptionRender.php index ee1bd76..c116ab8 100644 --- a/lib/ThemeOptionRender.php +++ b/lib/ThemeOptionRender.php @@ -88,7 +88,6 @@ public function checkbox($name, $display = NULL, $description = NULL, $options, $checked = ""; if ($userOptions !== null && in_array($option, $userOptions)) $checked = "checked"; $string .= '
'; - $options[$id] = _t($value); } $string .= ""; $$name = new Typecho_Widget_Helper_Form_Element_Checkbox($name, $options, $default, _t($display), _t($description));