mirror of
https://github.com/typecho/typecho.git
synced 2025-03-20 01:49:40 +01:00
parent
b0c4cc77a7
commit
bcbb02b81e
@ -35,7 +35,7 @@ class Widget_Options_General extends Widget_Abstract_Options implements Widget_I
|
||||
|
||||
if (!empty($files)) {
|
||||
foreach ($files as $file) {
|
||||
$getText = new Typecho_I18n_GetText($file);
|
||||
$getText = new Typecho_I18n_GetText($file, false);
|
||||
list ($name) = explode('.', basename($file));
|
||||
$title = $getText->translate('lang', $count);
|
||||
$langs[$name] = $count > -1 ? $title : $name;
|
||||
|
@ -71,7 +71,7 @@ class Widget_Upload extends Widget_Abstract_Contents implements Widget_Interface
|
||||
$info = pathinfo($name);
|
||||
$name = substr($info['basename'], 1);
|
||||
|
||||
return isset($info['extension']) ? $info['extension'] : '';
|
||||
return isset($info['extension']) ? strtolower($info['extension']) : '';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user