Merge pull request #607 from jrotty/master

主题缩略图使用screenshot命名的图片
This commit is contained in:
joyqi 2017-09-21 17:39:06 +08:00 committed by GitHub
commit b97289f7eb

View File

@ -69,7 +69,7 @@ class Widget_Themes_List extends Typecho_Widget
}
$screen = array_filter(glob($theme . '/*'), function ($path) {
return preg_match("/\.(jpg|png|gif|bmp|jpeg)$/i", $path);
return preg_match("/screenshot\.(jpg|png|gif|bmp|jpeg)$/i", $path);
});
if ($screen) {