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

User-extended cleanup

This commit is contained in:
Cameron
2021-01-10 14:37:42 -08:00
parent 4012ead989
commit 33b76590df
5 changed files with 518 additions and 226 deletions

View File

@@ -483,7 +483,7 @@ class signup_shortcodes extends e_shortcode
// 'unallocated' entries are `user_extended_struct_parent` = 0
// Get a list of defined categories
$catList = $ue->getCategories(FALSE);
$catList = $ue->getCategories();
// Add in category zero - the 'no category' category
array_unshift($catList,array('user_extended_struct_parent' => 0, 'user_extended_struct_id' => '0'));

View File

@@ -764,13 +764,11 @@ class user_shortcodes extends e_shortcode
";
*/
require_once(e_HANDLER."user_extended_class.php");
$ue = new e107_user_extended;
$ue = e107::getUserExt();
$ueCatList = $ue->user_extended_get_categories();
$ueFieldList = $ue->user_extended_get_fields();
$ueCatList[0][0] = array('user_extended_struct_name' => LAN_USER_44, 'user_extended_struct_text' => '');