]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Embed default gallery list uses medium icon instead of tiny.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 9 Jun 2010 15:43:33 +0000 (15:43 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 9 Jun 2010 15:43:33 +0000 (15:43 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6423 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/embed/views/default/embed/item/gallery.php

index ed43ca1c391faa3a652f8549adeae75420a1661b..a302412f65c507540b2122bb7aaf81949c198a18 100644 (file)
@@ -31,7 +31,7 @@ if ($ecml_keyword) {
        $embed_code = "[$ecml_keyword guid={$item->getGUID()}]";
 } else {
        // fallback to inserting a hard link to the object with its icon
-       $icon = "<img src=\"{$item->getIcon()}\" />" . htmlentities($title, ENT_QUOTES, 'UTF-8');
+       $icon = "<img src=\"{$item->getIcon('medium')}\" />" . htmlentities($title, ENT_QUOTES, 'UTF-8');
 
        $embed_code = elgg_view('output/url', array(
                'href' => $item->getURL(),
@@ -41,7 +41,7 @@ if ($ecml_keyword) {
        ));
 }
 
-$icon = "<img src=\"{$item->getIcon('tiny')}\" />";
+$icon = "<img src=\"{$item->getIcon('medium')}\" />";
 $info = htmlentities($title, ENT_QUOTES, 'UTF-8');
 
 $listing = elgg_view('entities/gallery_listing', array('icon' => $icon, 'info' => $info));