forked from GNUsocial/gnu-social
Improve error message per discussion on http://translatewiki.net/wiki/Thread:Support/Unclear_message.
Spotted by Peter17 and changed per suggestion of McDutchie with approval of Brion.
This commit is contained in:
parent
f31a6de311
commit
87125a1395
@ -55,10 +55,10 @@ class ThemeUploader
|
||||
public static function fromUpload($name)
|
||||
{
|
||||
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) {
|
||||
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']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user