aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-12-03 16:46:50 -0500
committercash <cash.costello@gmail.com>2011-12-03 16:46:50 -0500
commit5d26276359a4448f0aebc66c3a87b332338e7027 (patch)
treecd269deb21c9ee0211e6b7d080f9566fd2d5ecb4 /classes
parent092197523f135b1aec3de8ff50df0dcf724c8094 (diff)
downloadelgg-5d26276359a4448f0aebc66c3a87b332338e7027.tar.gz
elgg-5d26276359a4448f0aebc66c3a87b332338e7027.tar.bz2
better image display code - using elgg_view_entity_icon() now
Diffstat (limited to 'classes')
-rw-r--r--classes/TidypicsAlbum.php16
-rw-r--r--classes/TidypicsImage.php5
2 files changed, 4 insertions, 17 deletions
diff --git a/classes/TidypicsAlbum.php b/classes/TidypicsAlbum.php
index 028811e55..e5a8e2c0c 100644
--- a/classes/TidypicsAlbum.php
+++ b/classes/TidypicsAlbum.php
@@ -127,22 +127,6 @@ class TidypicsAlbum extends ElggObject {
}
/**
- * Get the URL for the album cover image
- *
- * @param string $size
- * @return string
- */
- public function getCoverImageURL($size = 'small') {
- $coverGuid = $this->getCoverImageGuid();
- if ($coverGuid) {
- $url = "pg/photos/thumbnail/$coverGuid/$size/";
- } else {
- $url = "mod/tidypics/graphics/empty_album.png";
- }
- return elgg_normalize_url($url);
- }
-
- /**
* Get the GUID of the album cover
*
* @return int
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/");
}