aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Bakker <jeabakker@coldtrick.com>2012-10-04 12:22:34 +0200
committerJerome Bakker <jeabakker@coldtrick.com>2012-10-04 12:22:34 +0200
commit955e8c0fb51a1d8207f82905e6ba669f41609edd (patch)
tree66c2c3b117b264af0bc0c6488ce70c251b891ff8
parent766fe8ebbcc600982dddce4d93b15b65a7b8c1fb (diff)
downloadelgg-955e8c0fb51a1d8207f82905e6ba669f41609edd.tar.gz
elgg-955e8c0fb51a1d8207f82905e6ba669f41609edd.tar.bz2
saving an unnessesary database call to check for icon_sizes
-rw-r--r--engine/lib/views.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index b00334062..6135026a7 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -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),