1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +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

@@ -25,7 +25,7 @@ if (!defined('e107_INIT')) { exit; }
* @todo: - change some routines to access the cached variables rather than DB
* @todo: Remove setting up of _FIELD_TYPES array (may be necessary, since UEF data structure not fixed)
* @todo: Consider changing field type constants to class constants
* @todo - cache field structure (already done in a different way in get_user_data() in class2.php line 1387 or so)
* @todo - cache field structure (already done in a different way in e107::user() in class2.php line 1387 or so)
* @todo - class variables - confirm whether public/protected assignments are correct
* @todo - consider whether to split system and non-system fields
@@ -1036,7 +1036,7 @@ class e107_user_extended
{
$field_name = 'user_'.$field_name;
}
$uinfo = get_user_data($uid);
$uinfo = e107::user($uid);
if (!isset($uinfo[$field_name])) return $ifnotset;
return $uinfo[$field_name];
}