diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-30 14:19:23 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-01-30 14:19:23 +0000 |
commit | d58bac38d99177284005c04d973c13efa77a6f04 (patch) | |
tree | 82fa34b80f2c7df81c3e4429d68d9c1af9fced89 /engine/lib | |
parent | af0228bd8262165deac1fab1d49cec077e1bcfda (diff) | |
download | elgg-d58bac38d99177284005c04d973c13efa77a6f04.tar.gz elgg-d58bac38d99177284005c04d973c13efa77a6f04.tar.bz2 |
Moving over to use file_exists to check for default entity icons, which should be lighter to load and produce fewer errors.
git-svn-id: https://code.elgg.org/elgg/trunk@2627 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/entities.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 05974ec09..31316383a 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2115,13 +2115,13 @@ $url = "views/$viewtype/graphics/icons/$type/$subtype/$size.png"; - if (!@getimagesize($CONFIG->path . $url)) + if (!@file_exists($CONFIG->path . $url)) $url = "views/$viewtype/graphics/icons/$type/default/$size.png"; - if(!@getimagesize($CONFIG->path . $url)) + if(!@file_exists($CONFIG->path . $url)) $url = "views/$viewtype/graphics/icons/default/$size.png"; - if (@getimagesize($CONFIG->path . $url)) + if (@file_exists($CONFIG->path . $url)) return $CONFIG->url . $url; } } |