mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10510] Made a couple improvements to phpbb_add_quickmod_option.
PHPBB3-10510
This commit is contained in:
parent
4f59990d90
commit
784c9725f3
2 changed files with 3 additions and 3 deletions
|
@ -1264,7 +1264,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
|
||||||
* @param string $option The value of the option.
|
* @param string $option The value of the option.
|
||||||
* @param string $lang_string The language string to use.
|
* @param string $lang_string The language string to use.
|
||||||
*/
|
*/
|
||||||
function phpbb_add_quickmod_option($option, $lang_string, $condition = true)
|
function phpbb_add_quickmod_option($option, $lang_string)
|
||||||
{
|
{
|
||||||
global $template;
|
global $template;
|
||||||
$template->assign_block_vars('quickmod', array(
|
$template->assign_block_vars('quickmod', array(
|
||||||
|
|
|
@ -535,8 +535,8 @@ $quickmod_array = array(
|
||||||
|
|
||||||
foreach($quickmod_array as $option => $qm_ary)
|
foreach($quickmod_array as $option => $qm_ary)
|
||||||
{
|
{
|
||||||
$lang_string = $user->lang[$qm_ary[0]];
|
$lang_string = $user->lang($qm_ary[0]);
|
||||||
if ((isset($qm_ary[1])) ? $qm_ary[1] : true)
|
if (isset($qm_ary[1]) && $qm_ary[1])
|
||||||
{
|
{
|
||||||
phpbb_add_quickmod_option($option, $lang_string);
|
phpbb_add_quickmod_option($option, $lang_string);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue