From ceb03a380403107da362e18e088ed0754fecfedd Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Tue, 28 Mar 2006 18:01:15 +0000 Subject: (hopefully) fixed the error display for uploading avatars (if avatar is too big) git-svn-id: file:///svn/phpbb/trunk@5749 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/functions_upload.php') diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php index 2b4e680e54..ca2ef1517f 100644 --- a/phpBB/includes/functions_upload.php +++ b/phpBB/includes/functions_upload.php @@ -278,7 +278,7 @@ class filespec if (!$this->upload->valid_dimensions($this)) { - $this->error[] = sprintf($user->lang[$this->upload->error_prefix . 'WRONG_SIZE'], $this->min_width, $this->min_height, $this->max_width, $this->max_height); + $this->error[] = sprintf($user->lang[$this->upload->error_prefix . 'WRONG_SIZE'], $this->upload->min_width, $this->upload->min_height, $this->upload->max_width, $this->upload->max_height); } } } @@ -532,6 +532,7 @@ class fileupload $url['path'] = explode('.', $url['path']); $ext = array_pop($url['path']); + $url['path'] = implode('', $url['path']); $upload_ary['name'] = basename($url['path']) . (($ext) ? '.' . $ext : ''); $filename = $url['path']; $filesize = 0; -- cgit v1.2.1