mirror of
https://github.com/typecho/typecho.git
synced 2025-03-25 12:29:43 +01:00
commit
b97289f7eb
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user