mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/12115] Convert user occupation to a profile field
PHPBB3-12115
This commit is contained in:
@@ -271,7 +271,6 @@ class ucp_profile
|
||||
'jabber' => utf8_normalize_nfc(request_var('jabber', $user->data['user_jabber'], true)),
|
||||
'website' => request_var('website', $user->data['user_website']),
|
||||
'location' => utf8_normalize_nfc(request_var('location', $user->data['user_from'], true)),
|
||||
'occupation' => utf8_normalize_nfc(request_var('occupation', $user->data['user_occ'], true)),
|
||||
'interests' => utf8_normalize_nfc(request_var('interests', $user->data['user_interests'], true)),
|
||||
);
|
||||
|
||||
@@ -308,7 +307,6 @@ class ucp_profile
|
||||
array('string', true, 12, 255),
|
||||
array('match', true, '#^http[s]?://(.*?\.)*?[a-z0-9\-]+\.[a-z]{2,4}#i')),
|
||||
'location' => array('string', true, 2, 100),
|
||||
'occupation' => array('string', true, 2, 500),
|
||||
'interests' => array('string', true, 2, 500),
|
||||
);
|
||||
|
||||
@@ -356,7 +354,6 @@ class ucp_profile
|
||||
'user_jabber' => $data['jabber'],
|
||||
'user_website' => $data['website'],
|
||||
'user_from' => $data['location'],
|
||||
'user_occ' => $data['occupation'],
|
||||
'user_interests'=> $data['interests'],
|
||||
'user_notify_type' => $data['notify'],
|
||||
);
|
||||
@@ -427,7 +424,6 @@ class ucp_profile
|
||||
'JABBER' => $data['jabber'],
|
||||
'WEBSITE' => $data['website'],
|
||||
'LOCATION' => $data['location'],
|
||||
'OCCUPATION'=> $data['occupation'],
|
||||
'INTERESTS' => $data['interests'],
|
||||
));
|
||||
|
||||
|
Reference in New Issue
Block a user