1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 23:25:30 +02:00

[ticket/10510] Moved a $user->lang call into the function.

PHPBB3-10510
This commit is contained in:
Callum Macrae 2012-03-12 07:43:01 +00:00
parent b530a4ede4
commit 79a987ffcb
2 changed files with 4 additions and 4 deletions

View File

@ -1261,12 +1261,13 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
/**
* Add an option to the quick-mod tools.
*
* @param string $option The value of the option.
* @param string $option The language key for the value of the option.
* @param string $lang_string The language string to use.
*/
function phpbb_add_quickmod_option($option, $lang_string)
{
global $template;
global $template, $user;
$lang_string = $user->lang($lang_string);
$template->assign_block_vars('quickmod', array(
'VALUE' => $option,
'TITLE' => $lang_string,

View File

@ -535,10 +535,9 @@ $quickmod_array = array(
foreach($quickmod_array as $option => $qm_ary)
{
$lang_string = $user->lang($qm_ary[0]);
if (!empty($qm_ary[1]))
{
phpbb_add_quickmod_option($option, $lang_string);
phpbb_add_quickmod_option($option, $qm_ary[0]);
}
}