aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-03-10 08:41:55 -0700
committerCash Costello <cash.costello@gmail.com>2013-03-10 08:41:55 -0700
commit1fe6a8ce3120dc063a536c0ea41cfc798432d02f (patch)
treeaac40e7b6d4046867061e53966479e2d591189ae /mod
parent3736c93fb6e3910a592b037d961367180edd542e (diff)
parentd07700e172c37c7af64ba1be5032330ba9766cb0 (diff)
downloadelgg-1fe6a8ce3120dc063a536c0ea41cfc798432d02f.tar.gz
elgg-1fe6a8ce3120dc063a536c0ea41cfc798432d02f.tar.bz2
Merge pull request #5204 from cash/bug_5058
Fixes #5058 not forcing a size on an image
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/views/default/groups/css.php4
-rw-r--r--mod/groups/views/default/groups/profile/summary.php9
2 files changed, 8 insertions, 5 deletions
diff --git a/mod/groups/views/default/groups/css.php b/mod/groups/views/default/groups/css.php
index 39246f856..32dd2b74d 100644
--- a/mod/groups/views/default/groups/css.php
+++ b/mod/groups/views/default/groups/css.php
@@ -9,10 +9,6 @@
.groups-profile > .elgg-image {
margin-right: 10px;
}
-.groups-profile-icon img {
- width: 100%;
- height: auto;
-}
.groups-stats {
background: #eeeeee;
padding: 5px;
diff --git a/mod/groups/views/default/groups/profile/summary.php b/mod/groups/views/default/groups/profile/summary.php
index f1221f19a..3f7496871 100644
--- a/mod/groups/views/default/groups/profile/summary.php
+++ b/mod/groups/views/default/groups/profile/summary.php
@@ -25,7 +25,14 @@ if (!$owner) {
<div class="groups-profile clearfix elgg-image-block">
<div class="elgg-image">
<div class="groups-profile-icon">
- <?php echo elgg_view_entity_icon($group, 'large', array('href' => '')); ?>
+ <?php
+ // we don't force icons to be square so don't set width/height
+ echo elgg_view_entity_icon($group, 'large', array(
+ 'href' => '',
+ 'width' => '',
+ 'height' => '',
+ ));
+ ?>
</div>
<div class="groups-stats">
<p>