diff options
Diffstat (limited to 'site/app/controllers/components/image.php')
-rw-r--r-- | site/app/controllers/components/image.php | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/site/app/controllers/components/image.php b/site/app/controllers/components/image.php index b0b6992..491a05d 100644 --- a/site/app/controllers/components/image.php +++ b/site/app/controllers/components/image.php @@ -77,17 +77,7 @@ class ImageComponent extends Object { $this->renderImage($addon['Addon']['icondata'], $addon['Addon']['icontype']); } - - /** - * Renders the icon for a collection - * @param int $collection_id the add-on ID - */ - function renderCollectionIcon($collection_id) { - $collection = $this->controller->Collection->findById($collection_id, array('icondata', 'icontype'), null, -1); - - $this->renderImage($collection['Collection']['icondata'], $collection['Collection']['icontype']); - } - + /** * Renders the preview or thumbnail for an add-on * @param int $preview_id the preview id @@ -134,25 +124,6 @@ class ImageComponent extends Object { } /** - * Gets the URL for the icon of the specified collection - * @param int $addon_id the add-on id - * @return string the URL - */ - function getCollectionIconURL($collection_id) { - $collection = $this->controller->Collection->findById( - $collection_id, array( - 'icontype', 'collection_type', 'uuid', 'modified' - ), null, -1 - ); - - if (empty($collection['Collection']['icontype'])) { - return "{$this->controller->base}/img/collection.png"; - } else { - return "{$this->controller->base}/en-US/firefox/images/collection_icon/{$collection_id}/".strtotime($collection['Collection']['modified']); - } - } - - /** * Gets the URL for the highlighted preview for an add-on * @param int $addon_id add-on ID * @param string $type type of preview |