diff options
author | cash <cash.costello@gmail.com> | 2011-12-03 16:46:50 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-12-03 16:46:50 -0500 |
commit | 5d26276359a4448f0aebc66c3a87b332338e7027 (patch) | |
tree | cd269deb21c9ee0211e6b7d080f9566fd2d5ecb4 /classes/TidypicsImage.php | |
parent | 092197523f135b1aec3de8ff50df0dcf724c8094 (diff) | |
download | elgg-5d26276359a4448f0aebc66c3a87b332338e7027.tar.gz elgg-5d26276359a4448f0aebc66c3a87b332338e7027.tar.bz2 |
better image display code - using elgg_view_entity_icon() now
Diffstat (limited to 'classes/TidypicsImage.php')
-rw-r--r-- | classes/TidypicsImage.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/TidypicsImage.php b/classes/TidypicsImage.php index a37e0dc38..1f6812760 100644 --- a/classes/TidypicsImage.php +++ b/classes/TidypicsImage.php @@ -67,7 +67,10 @@ class TidypicsImage extends ElggFile { * * @return string */ - public function getSrcUrl($size = 'small') { + public function getIconURL($size = 'small') { + if ($size == 'tiny') { + $size = 'thumb'; + } return elgg_normalize_url("photos/thumbnail/$this->guid/$size/"); } |