phpBB

Code Changes

File: phpbb/plupload/plupload.php

  Unmodified   Added   Modified   Removed
Line 125Line 125
			// Need to modify some of the $_FILES values to reflect the new file
return array(
'tmp_name' => $file_path,

			// Need to modify some of the $_FILES values to reflect the new file
return array(
'tmp_name' => $file_path,

				'name' => $this->request->variable('real_filename', ''),

				'name' => $this->request->variable('real_filename', '', true),

				'size' => filesize($file_path),
'type' => $this->mimetype_guesser->guess($file_path, $file_name),
);

				'size' => filesize($file_path),
'type' => $this->mimetype_guesser->guess($file_path, $file_name),
);

Line 266Line 266
		if ($this->config['img_max_height'] > 0 && $this->config['img_max_width'] > 0)
{
$resize = sprintf(

		if ($this->config['img_max_height'] > 0 && $this->config['img_max_width'] > 0)
{
$resize = sprintf(

				'resize: {width: %d, height: %d, quality: 100},',

				'resize: {width: %d, height: %d, quality: 85},',

				(int) $this->config['img_max_width'],
(int) $this->config['img_max_height']
);

				(int) $this->config['img_max_width'],
(int) $this->config['img_max_height']
);