Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -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§ion=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 ){}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user