mirror of
https://github.com/typecho/typecho.git
synced 2025-03-25 04:19:45 +01:00
Merge branch 'master' of github.com:typecho/typecho
This commit is contained in:
commit
0e7b399ba8
@ -202,13 +202,7 @@ class Typecho_Common
|
||||
public static function init()
|
||||
{
|
||||
/** 设置自动载入函数 */
|
||||
if (function_exists('spl_autoload_register')) {
|
||||
spl_autoload_register(array('Typecho_Common', '__autoLoad'));
|
||||
} else {
|
||||
function __autoLoad($className) {
|
||||
Typecho_Common::__autoLoad($className);
|
||||
}
|
||||
}
|
||||
spl_autoload_register(array('Typecho_Common', '__autoLoad'));
|
||||
|
||||
/** 兼容php6 */
|
||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
||||
|
@ -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