diff options
author | 2015-09-09 10:43:12 +0200 | |
---|---|---|
committer | 2015-09-09 10:43:12 +0200 | |
commit | 70ad0c6a8f7d16b767aa78cde2acc9a3b3512e6f (patch) | |
tree | 2532298ac7bad2350af768a29d67bdc333cb2d8f /phpBB/phpbb/files | |
parent | [ticket/13904] Modify files for updated fast-image-size library (diff) | |
download | phpbb-70ad0c6a8f7d16b767aa78cde2acc9a3b3512e6f.tar.gz phpbb-70ad0c6a8f7d16b767aa78cde2acc9a3b3512e6f.tar.bz2 phpbb-70ad0c6a8f7d16b767aa78cde2acc9a3b3512e6f.zip |
[ticket/13904] Add language entries for error messages in upload class
PHPBB3-13904
Diffstat (limited to 'phpBB/phpbb/files')
-rw-r--r-- | phpBB/phpbb/files/upload.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/phpBB/phpbb/files/upload.php b/phpBB/phpbb/files/upload.php index 328dd49a06..bd379924e7 100644 --- a/phpBB/phpbb/files/upload.php +++ b/phpBB/phpbb/files/upload.php @@ -245,15 +245,12 @@ class upload break; case UPLOAD_ERR_NO_TMP_DIR: - $error = 'Temporary folder could not be found. Please check your PHP installation.'; - break; - case UPLOAD_ERR_CANT_WRITE: - $error = 'Can’t write to temporary folder.'; + $error = $this->language->lang($this->error_prefix . 'NO_TEMP_DIR'); break; case UPLOAD_ERR_EXTENSION: - $error = 'A PHP extension has stopped the file upload.'; + $error = $this->language->lang($this->error_prefix . 'PHP_UPLOAD_STOPPED'); break; default: |