Spotted by Peter17 and changed per suggestion of McDutchie with approval of Brion.
This commit is contained in:
Siebrand Mazeland 2010-06-21 20:15:26 +02:00
parent f31a6de311
commit 87125a1395

View File

@ -55,10 +55,10 @@ class ThemeUploader
public static function fromUpload($name) public static function fromUpload($name)
{ {
if (!isset($_FILES[$name]['error'])) { if (!isset($_FILES[$name]['error'])) {
throw new ServerException(_("Theme upload missing or failed.")); throw new ServerException(_("The theme file is missing or the upload failed."));
} }
if ($_FILES[$name]['error'] != UPLOAD_ERR_OK) { if ($_FILES[$name]['error'] != UPLOAD_ERR_OK) {
throw new ServerException(_("Theme upload missing or failed.")); throw new ServerException(_("The theme file is missing or the upload failed."));
} }
return new ThemeUploader($_FILES[$name]['tmp_name']); return new ThemeUploader($_FILES[$name]['tmp_name']);
} }