mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed image resize;
- added few scripts dependencies;
This commit is contained in:
@@ -936,7 +936,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
|
||||
|
||||
$max_w = UM()->options()->get('image_max_width');
|
||||
if ( $src_w > $max_w ) {
|
||||
$image->resize( $max_w );
|
||||
$image->resize( $max_w, $src_h );
|
||||
}
|
||||
|
||||
$image->save( $image_path );
|
||||
@@ -987,7 +987,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
|
||||
|
||||
$max_w = UM()->options()->get('image_max_width');
|
||||
if ( $src_w > $max_w ) {
|
||||
$image->resize( $max_w );
|
||||
$image->resize( $max_w, $src_h );
|
||||
}
|
||||
|
||||
$image->save( $image_path );
|
||||
@@ -1039,7 +1039,7 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
|
||||
|
||||
$max_w = UM()->options()->get('image_max_width');
|
||||
if ( $src_w > $max_w ) {
|
||||
$image->resize( $max_w );
|
||||
$image->resize( $max_w, $src_h );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user