Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
fix(ui): do not set body if hypeUI is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
hypeJunction committed Jul 11, 2017
1 parent 5725abe commit 3c9cb28
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions classes/hypeJunction/Attachments/Views.php
Expand Up @@ -70,14 +70,18 @@ public static function filterFullViewVars($hook, $type, $return, $params) {
return;
}

$body = elgg_extract('body', $return, '');
if (!$body) {
$body = $attachments;
if (elgg_is_active_plugin('hypeUI')) {
$return['attachments'] .= $attachments;
} else {
$body .= '<br />' . $attachments;
$body = elgg_extract('body', $return, '');
if (!$body) {
$body = $attachments;
} else {
$body .= '<br />' . $attachments;
}
$return['body'] = $body;
}
$return['body'] = $body;


return $return;
}

Expand Down

0 comments on commit 3c9cb28

Please sign in to comment.