mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11959] Rename phpbb_gen_string_list() & fix incorrect var name.
PHPBB3-11959
This commit is contained in:
parent
285ad0f6fa
commit
3da1f6d989
2 changed files with 4 additions and 4 deletions
|
@ -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"
|
* @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);
|
$count = sizeof($items);
|
||||||
$last_item = '';
|
$last_item = '';
|
||||||
|
|
|
@ -211,14 +211,14 @@ class post extends \phpbb\notification\type\base
|
||||||
$usernames[] = $this->user->lang('NOTIFICATION_X_OTHERS', $trimmed_responders_cnt);
|
$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(
|
return $this->user->lang(
|
||||||
$this->language_key,
|
$this->language_key,
|
||||||
phpbb_gen_string_list($usernames, $this->user),
|
phpbb_generate_string_list($usernames, $this->user),
|
||||||
censor_text($this->get_data('topic_title')),
|
censor_text($this->get_data('topic_title')),
|
||||||
$responders_cnt
|
$responders_cnt
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue