aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2012-03-25 23:59:09 -0700
committerEvan Winslow <evan@elgg.org>2012-03-26 00:01:51 -0700
commitea5219e5da8c99dee97b3ee074bb34e604821245 (patch)
treecdf4c33e9b4866cdfceda5d863a81f63dffdac65
parent5c991946ad52889d4b0511484d6a58f8898b5061 (diff)
downloadelgg-ea5219e5da8c99dee97b3ee074bb34e604821245.tar.gz
elgg-ea5219e5da8c99dee97b3ee074bb34e604821245.tar.bz2
Fixes #4419: Pages icons now work with all sizes
-rw-r--r--mod/pages/start.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod/pages/start.php b/mod/pages/start.php
index 4b230a93d..834e98870 100644
--- a/mod/pages/start.php
+++ b/mod/pages/start.php
@@ -189,10 +189,12 @@ function pages_icon_url_override($hook, $type, $returnvalue, $params) {
if (elgg_instanceof($entity, 'object', 'page_top') ||
elgg_instanceof($entity, 'object', 'page')) {
switch ($params['size']) {
+ case 'topbar':
+ case 'tiny':
case 'small':
return 'mod/pages/images/pages.gif';
break;
- case 'medium':
+ default:
return 'mod/pages/images/pages_lrg.gif';
break;
}