Skip to content

Commit f40f774

Browse files
committed
[ticket/11201] Fix some variable names
PHPBB3-11201
1 parent ad8d449 commit f40f774

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

phpBB/includes/acp/acp_profile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ function save_profile_field(&$cp, $field_type, $action = 'create')
971971
}
972972
}
973973

974-
$cp->vars = $profile_type->get_language_options_input($cp->vars);
974+
$cp->vars = $profile_field->get_language_options_input($cp->vars);
975975

976976
if ($cp->vars['lang_options'])
977977
{

phpBB/phpbb/profilefields/type/type_date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function get_profile_value($field_value, $field_data)
203203
return $this->user->create_datetime()
204204
->setDate($year, $month, $day)
205205
->setTime(0, 0, 0)
206-
->format($user->lang['DATE_FORMAT'], true);
206+
->format($this->user->lang['DATE_FORMAT'], true);
207207
}
208208

209209
return $field_value;

0 commit comments

Comments
 (0)