1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Replaced deprecated get_user_data() with e107::user()

This commit is contained in:
Cameron
2015-01-26 18:03:14 -08:00
parent 141b9d1ab1
commit 489a9cb49c
12 changed files with 20 additions and 268 deletions

View File

@@ -192,7 +192,7 @@ $inp = intval(e_QUERY);
$usersettings_form_action = strstr('?', $_usersettings_matches[3]) ? e_SELF.'?'.e_QUERY : e_SELF;
$_uid = $inp;
$info = get_user_data($inp);
$info = e107::user($inp);
//Only site admin is able to change setting for other admins
if(!is_array($info) || ($info['user_admin'] == 1 && (!defined('ADMINPERMS') || ADMINPERMS !== '0')) || ((!defined('ADMINPERMS') || ADMINPERMS !== '0') && !getperms('4')))
{
@@ -297,7 +297,7 @@ require_once (e_ADMIN."auth.php");
if (isset($_POST['updatesettings']) || isset($_POST['SaveValidatedInfo']))
{
// $udata = get_user_data($inp); //@deprecated // Get all the existing user data, including any extended fields
// $udata = e107::user($inp); //@deprecated // Get all the existing user data, including any extended fields
$udata = e107::user($inp); // Get all the existing user data, including any extended fields
$udata['user_classlist'] = $userMethods->addCommonClasses($udata, FALSE);