Commit 35fa5106 authored by Dries's avatar Dries

- Patch #108731 by add1sun: code cleanup.

parent 4522cf67
......@@ -149,7 +149,7 @@ function profile_block($op = 'list', $delta = 0, $edit = array()) {
}
if (isset($use_fields['user_profile']) && $use_fields['user_profile']) {
$output .= '<div>' . l(t('View full user profile'), 'user/' . $account->uid) . '</div>';
$output .= '<div>'. l(t('View full user profile'), 'user/'. $account->uid) .'</div>';
}
}
......@@ -371,7 +371,7 @@ function profile_field_delete($fid) {
return confirm_form($form,
t('Are you sure you want to delete the field %field?', array('%field' => $field->title)), 'admin/user/profile',
t('This action cannot be undone. If users have entered values into this field in their profile, these entries will also be deleted. If you want to keep the user-entered data, instead of deleting the field you may wish to <a href="@edit-field">edit this field</a> and change it to a hidden profile field so that it may only be accessed by administrators.', array('@edit-field' => url('admin/user/profile/edit/' . $fid))),
t('This action cannot be undone. If users have entered values into this field in their profile, these entries will also be deleted. If you want to keep the user-entered data, instead of deleting the field you may wish to <a href="@edit-field">edit this field</a> and change it to a hidden profile field so that it may only be accessed by administrators.', array('@edit-field' => url('admin/user/profile/edit/'. $fid))),
t('Delete'), t('Cancel'));
}
......@@ -422,7 +422,7 @@ function profile_admin_overview() {
*/
function profile_browse() {
$name = arg(1);
list(,,$value) = explode('/', $_GET['q'], 3);
list(, , $value) = explode('/', $_GET['q'], 3);
$field = db_fetch_object(db_query("SELECT DISTINCT(fid), type, title, page, visibility FROM {profile_fields} WHERE name = '%s'", $name));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment