Skip to content

Commit

Permalink
Update helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSheer committed Feb 10, 2019
1 parent e57c4e3 commit b256e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/helper.php
Expand Up @@ -79,8 +79,12 @@ public function create_attach($file, $filename, $poster_id, $post_msg_id, $topic

if (copy($file, $attach_file))
{
//$file_data = explode('.', $filename);
$thumb = 0;
if ($this->phpbb_extension_manager->is_enabled('sher/image_rotator') && ($this->config['rotate_img_max_width'] || $this->config['rotate_img_max_height']))
{
$this->config['img_max_height'] = $this->config['rotate_img_max_height'];
$this->config['img_max_width'] = $this->config['rotate_img_max_width'];
}

if ($this->config['img_max_height'] > 0 && $this->config['img_max_width'] > 0) // need resize?
{
Expand Down

0 comments on commit b256e24

Please sign in to comment.