diff --git a/var/Widget/Options/General.php b/var/Widget/Options/General.php index c59bca67..c6265058 100644 --- a/var/Widget/Options/General.php +++ b/var/Widget/Options/General.php @@ -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; diff --git a/var/Widget/Upload.php b/var/Widget/Upload.php index 2927dca2..eb3d9d3f 100644 --- a/var/Widget/Upload.php +++ b/var/Widget/Upload.php @@ -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']) : ''; } /**