Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -211,10 +211,19 @@ class _ajax extends \IPS\Dispatcher\Controller
|
||||
/* Permission check */
|
||||
if ( $permission )
|
||||
{
|
||||
$toReturn[ $attachment['attach_id'] ] = array(
|
||||
'size' => \IPS\Output\Plugin\Filesize::humanReadableFilesize( $attachment['attach_filesize'], FALSE, TRUE ),
|
||||
'downloads' => \IPS\Member::loggedIn()->language()->formatNumber( $attachment['attach_hits'] )
|
||||
);
|
||||
if( $attachment['attach_is_image'] )
|
||||
{
|
||||
$toReturn[ $attachment['attach_id'] ] = array(
|
||||
'rotate' => $attachment['attach_img_rotate'] <> 0 ? (int)$attachment['attach_img_rotate'] : null
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$toReturn[ $attachment['attach_id'] ] = array(
|
||||
'size' => \IPS\Output\Plugin\Filesize::humanReadableFilesize( $attachment['attach_filesize'], FALSE, TRUE ),
|
||||
'downloads' => \IPS\Member::loggedIn()->language()->formatNumber( $attachment['attach_hits'] )
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user