mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-31 03:29:23 +02:00
[ticket/11959] Rename phpbb_gen_string_list() & fix incorrect var name.
PHPBB3-11959
This commit is contained in:
parent
285ad0f6fa
commit
3da1f6d989
@ -1508,7 +1508,7 @@ function phpbb_gen_download_links($param_key, $param_val, $phpbb_root_path, $php
|
||||
*
|
||||
* @return string String list. Examples: "A"; "A and B"; "A, B and C"
|
||||
*/
|
||||
function phpbb_gen_string_list($items, $user)
|
||||
function phpbb_generate_string_list($items, $user)
|
||||
{
|
||||
$count = sizeof($items);
|
||||
$last_item = '';
|
||||
|
@ -211,14 +211,14 @@ class post extends \phpbb\notification\type\base
|
||||
$usernames[] = $this->user->lang('NOTIFICATION_X_OTHERS', $trimmed_responders_cnt);
|
||||
}
|
||||
|
||||
if (!function_exists('phpbb_gen_string_list'))
|
||||
if (!function_exists('phpbb_generate_string_list'))
|
||||
{
|
||||
include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ex);
|
||||
include($this->phpbb_root_path . 'includes/functions_display.' . $this->php_ext);
|
||||
}
|
||||
|
||||
return $this->user->lang(
|
||||
$this->language_key,
|
||||
phpbb_gen_string_list($usernames, $this->user),
|
||||
phpbb_generate_string_list($usernames, $this->user),
|
||||
censor_text($this->get_data('topic_title')),
|
||||
$responders_cnt
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user