1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/13904] Add language entries for error messages in upload class

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-09-09 10:43:12 +02:00
parent 327e36a4d6
commit 70ad0c6a8f
4 changed files with 9 additions and 8 deletions

View File

@@ -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 = 'Cant 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: