Skip to content

Commit

Permalink
[Imp] Disable error reporting #13 #14
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Oct 21, 2017
1 parent ab41eda commit 66fdaa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

define("MATERIAL_VERSION", "3.1.0");
define("MATERIAL_VERSION", "3.1.1");

require_once("lib/UACheck.php");
require_once("lib/pangu.php");

if (function_exists(error_reporting)) error_reporting(0);

/**
* JavaScript 载入
* @param string url
Expand Down Expand Up @@ -324,7 +326,7 @@ function showThumbnail($widget)

if (preg_match_all($pattern, $widget->content, $thumbUrl)) {
echo $thumbUrl[1][0];
} elseif (isset($attach) && $attach->isImage) {
} elseif ($attach->isImage) {
echo $attach->url;
} else {
echo $random;
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 Theme.Material
* @author 黎明余光
* @version 3.1.0
* @version 3.1.1
* @link https://blog.lim-light.com
*/

Expand Down

0 comments on commit 66fdaa1

Please sign in to comment.