Skip to content

Commit

Permalink
[Fixed] A small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Oct 1, 2018
1 parent 7c23f6c commit 90b20f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Material
* @author 黎明余光
* @version 3.2.2
* @version 3.2.5
* @link https://blog.lim-light.com
*/

Expand Down
1 change: 0 additions & 1 deletion lib/ThemeOptionRender.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public function checkbox($name, $display = NULL, $description = NULL, $options,
$checked = "";
if ($userOptions !== null && in_array($option, $userOptions)) $checked = "checked";
$string .= '<li><label class="mdui-checkbox"><input type="checkbox" name="' . $name . '[]" value="' . $option . '" ' . $checked . '/><i class="mdui-checkbox-icon"></i>' . $value . '</label></li>';
$options[$id] = _t($value);
}
$string .= "</ul>";
$$name = new Typecho_Widget_Helper_Form_Element_Checkbox($name, $options, $default, _t($display), _t($description));
Expand Down

0 comments on commit 90b20f1

Please sign in to comment.