mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Short list syntax can be used
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
4bb72dfe59
commit
742575bb56
7 changed files with 10 additions and 10 deletions
|
@ -213,7 +213,7 @@ function display_attachments($post_id)
|
|||
|
||||
if (@(int)$display_categories[$attachments['_' . $post_id][$i]['extension']] == IMAGE_CAT && (int)$attach_config['img_display_inlined']) {
|
||||
if ((int)$attach_config['img_link_width'] != 0 || (int)$attach_config['img_link_height'] != 0) {
|
||||
list($width, $height) = image_getdimension($filename);
|
||||
[$width, $height] = image_getdimension($filename);
|
||||
|
||||
if ($width == 0 && $height == 0) {
|
||||
$image = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue