Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

+23 -1
View File
@@ -99,7 +99,7 @@ class _Application extends \IPS\Application
\IPS\Request::i()->file = 'medium';
}
$imageSize = ( \IPS\Request::i()->file ?: 'medium' ) . '_file_name';
$imageSize = ( ( \IPS\Request::i()->file == 'small' ) ? 'small' : 'masked' ) . '_file_name';
try
{
@@ -108,6 +108,28 @@ class _Application extends \IPS\Application
catch ( \Exception $e ){}
}
}
/* convert ?app=gallery&module=images&section=viewimage&img=14586 */
if( isset( \IPS\Request::i()->section ) AND \IPS\Request::i()->section == 'viewimage' )
{
$id = ( isset( \IPS\Request::i()->img ) ) ? \IPS\Request::i()->img : \IPS\Request::i()->id;
if( $id )
{
if( \IPS\Request::i()->file == 'med' )
{
\IPS\Request::i()->file = 'medium';
}
$imageSize = ( ( \IPS\Request::i()->file == 'small' ) ? 'small' : 'masked' ) . '_file_name';
try
{
\IPS\Output::i()->redirect( \IPS\gallery\Image::load( $id )->url() );
}
catch ( \Exception $e ){}
}
}
}
/**