diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-22 03:24:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-22 03:24:09 +0000 |
commit | 63b9e4770b7bf205a9b707264cb6f77354f77ecd (patch) | |
tree | 71c5398c02d35c8b2d365254acdf55764817eee4 /modules/user/user.module | |
parent | cdf28e6fd6aa87b8e0302bcc88505f378a38968d (diff) | |
download | brdo-63b9e4770b7bf205a9b707264cb6f77354f77ecd.tar.gz brdo-63b9e4770b7bf205a9b707264cb6f77354f77ecd.tar.bz2 |
- Patch #908282 by jbrown: theme_image() performs I/O.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index c1eae4fb8..b43b689fd 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -1410,10 +1410,10 @@ function template_preprocess_user_picture(&$variables) { if (isset($filepath)) { $alt = t("@user's picture", array('@user' => format_username($account))); if (module_exists('image') && $style = variable_get('user_picture_style', '')) { - $variables['user_picture'] = theme('image_style', array('style_name' => $style, 'path' => $filepath, 'alt' => $alt, 'title' => $alt, 'attributes' => array(), 'getsize' => FALSE)); + $variables['user_picture'] = theme('image_style', array('style_name' => $style, 'path' => $filepath, 'alt' => $alt, 'title' => $alt)); } else { - $variables['user_picture'] = theme('image', array('path' => $filepath, 'alt' => $alt, 'title' => $alt, 'attributes' => array(), 'getsize' => FALSE)); + $variables['user_picture'] = theme('image', array('path' => $filepath, 'alt' => $alt, 'title' => $alt)); } if (!empty($account->uid) && user_access('access user profiles')) { $attributes = array('attributes' => array('title' => t('View user profile.')), 'html' => TRUE); |