]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4419: Pages icons now work with all sizes
authorEvan Winslow <evan@elgg.org>
Mon, 26 Mar 2012 06:59:09 +0000 (23:59 -0700)
committerEvan Winslow <evan@elgg.org>
Mon, 26 Mar 2012 07:01:51 +0000 (00:01 -0700)
mod/pages/start.php

index 4b230a93d3b3dc09194159ac3b735525d58df94b..834e98870ef4b70308a26553d626554e601582bc 100644 (file)
@@ -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;
                }