summaryrefslogtreecommitdiff
path: root/preferences.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-07-09 14:30:53 +0000
committerwjames5 <will@tekimaki.com>2008-07-09 14:30:53 +0000
commite4b440a71348f1e0010719b7de0321d777a32ee8 (patch)
tree2b82e05f4316d79475bc7a6317d5eaa813f4b2c1 /preferences.php
parent8a0c3944d1306025fc66a3770d9971cdc98ac0c9 (diff)
downloadusers-e4b440a71348f1e0010719b7de0321d777a32ee8.tar.gz
users-e4b440a71348f1e0010719b7de0321d777a32ee8.tar.bz2
users-e4b440a71348f1e0010719b7de0321d777a32ee8.zip
call edit service since we are editing content - and assign editUser to gContent so everythign works smoothly - hopefully this was not done before because of some oversight and because this creates any weird conflicts - which it shouldnt
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/preferences.php b/preferences.php
index c735a95..caa1a31 100644
--- a/preferences.php
+++ b/preferences.php
@@ -1,6 +1,6 @@
<?php
/**
- * $Header: /cvsroot/bitweaver/_bit_users/preferences.php,v 1.53 2008/06/29 08:00:18 squareing Exp $
+ * $Header: /cvsroot/bitweaver/_bit_users/preferences.php,v 1.54 2008/07/09 14:30:53 wjames5 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: preferences.php,v 1.53 2008/06/29 08:00:18 squareing Exp $
+ * $Id: preferences.php,v 1.54 2008/07/09 14:30:53 wjames5 Exp $
* @package users
* @subpackage functions
*/
@@ -231,6 +231,7 @@ $gBitSmarty->assign( 'flags', $flags );
$editUser->mInfo['users_homepage'] = $editUser->getPreference( 'users_homepage', '' );
$gBitSmarty->assign( 'editUser', $editUser );
+$gBitSmarty->assign( 'gContent', $editUser ); // also assign to gContent to make services happy
$gBitSmarty->assign( 'feedback', $feedback );
/* This should come from BitDate->get_timezone_list but that seems to rely on a global from PEAR that does not exist. */
@@ -249,5 +250,8 @@ $scramblingEmails = array(
scrambleEmail( $editUser->mInfo['email'], 'x' )
);
$gBitSmarty->assign_by_ref( 'scramblingEmails', $scramblingEmails );
+
+// edit services
+$editUser->invokeServices( 'content_edit_function' );
$gBitSystem->display( 'bitpackage:users/user_preferences.tpl', 'Edit User Preferences' , array( 'display_mode' => 'display' ));
?>