Version 5.0.0 beta 8
This commit is contained in:
1 parent
54d5dcd0a0
commit
214f649f1d
483 files changed
+35354
-33568
No files matched your search
@@ -54,6 +54,7 @@ use IPS\Request;
|
||||
use IPS\Session;
|
||||
use IPS\Settings;
|
||||
use IPS\Theme;
|
||||
use IPS\Widget;
|
||||
use OutOfRangeException;
|
||||
use RuntimeException;
|
||||
use UnderflowException;
|
||||
@@ -1245,7 +1246,6 @@ class view extends Controller
|
||||
else
|
||||
{
|
||||
$noWatermark = NULL;
|
||||
$watermarked = FALSE;
|
||||
if ( Settings::i()->idm_watermarkpath )
|
||||
{
|
||||
try
|
||||
@@ -1255,7 +1255,6 @@ class view extends Controller
|
||||
$image = Image::create( $file->contents() );
|
||||
$image->watermark( $watermark );
|
||||
$file = File::create( 'downloads_Screenshots', $file->originalFilename, $image );
|
||||
$watermarked = TRUE;
|
||||
}
|
||||
catch ( Exception $e ) { }
|
||||
}
|
||||
@@ -1274,6 +1273,9 @@ class view extends Controller
|
||||
) );
|
||||
}
|
||||
}
|
||||
|
||||
/* Clear any widget caches so that the new thumbnails show */
|
||||
Widget::deleteCaches( null, 'downloads' );
|
||||
}
|
||||
|
||||
if ( isset( $values['url_screenshots'] ) )
|
||||
|
||||
Reference in new issue
Block a user