]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
saving an unnessesary database call to check for icon_sizes
authorJerome Bakker <jeabakker@coldtrick.com>
Thu, 4 Oct 2012 10:22:34 +0000 (12:22 +0200)
committerJerome Bakker <jeabakker@coldtrick.com>
Thu, 4 Oct 2012 10:22:34 +0000 (12:22 +0200)
engine/lib/views.php

index b00334062990552e08f927e303f406b6215351be..6135026a74280b31bf780dd8349e320244e1fe72 100644 (file)
@@ -1653,7 +1653,7 @@ function elgg_views_boot() {
        }
 
        // set default icon sizes - can be overridden in settings.php or with plugin
-       if (!elgg_get_config('icon_sizes')) {
+       if (!$CONFIG->icon_sizes) {
                $icon_sizes = array(
                        'topbar' => array('w' => 16, 'h' => 16, 'square' => TRUE, 'upscale' => TRUE),
                        'tiny' => array('w' => 25, 'h' => 25, 'square' => TRUE, 'upscale' => TRUE),