summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2009-09-04 15:30:05 +0000
committerChristian Fowler <spider@viovio.com>2009-09-04 15:30:05 +0000
commitd917a4d07af4e6699785d691a96aca0a72d1450d (patch)
tree9e25c2b60b372d886c7eeebb5a06ddbbcca60116 /modules
parenta694a2ca59bf5da6c5b96eb00c963184865254b6 (diff)
downloadusers-d917a4d07af4e6699785d691a96aca0a72d1450d.tar.gz
users-d917a4d07af4e6699785d691a96aca0a72d1450d.tar.bz2
users-d917a4d07af4e6699785d691a96aca0a72d1450d.zip
force portrait_url to small... for now. will add module_param shortly
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_user_profile.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mod_user_profile.php b/modules/mod_user_profile.php
index 107aec6..a3600c6 100644
--- a/modules/mod_user_profile.php
+++ b/modules/mod_user_profile.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/modules/mod_user_profile.php,v 1.9 2009/09/03 16:28:26 spiderr Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/modules/mod_user_profile.php,v 1.10 2009/09/04 15:30:05 spiderr Exp $
*
* Copyright (c) 2004 bitweaver.org
* Copyright (c) 2003 tikwiki.org
@@ -8,7 +8,7 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: mod_user_profile.php,v 1.9 2009/09/03 16:28:26 spiderr Exp $
+ * $Id: mod_user_profile.php,v 1.10 2009/09/04 15:30:05 spiderr Exp $
* @package users
* @subpackage modules
*/
@@ -33,6 +33,8 @@ if( !empty( $module_params['user_id'] )) {
$userInfo = &$gBitUser->mInfo;
$userPrefs = &$gBitUser->mPrefs;
}
+$userInfo['portrait_url'] = liberty_fetch_thumbnail_url( array( 'storage_path' => $userInfo['portrait_storage_path'], 'size' => 'small', 'mime_image' => FALSE ));
+
$gBitSmarty->assign_by_ref( 'userInfo', $userInfo );
$gBitSmarty->assign_by_ref( 'userPrefs', $userPrefs );
?>