aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_content.php
diff options
context:
space:
mode:
authorCallum Macrae <callum@lynxphp.com>2012-03-12 07:43:01 +0000
committerCallum Macrae <callum@lynxphp.com>2012-03-17 18:06:46 +0000
commit79a987ffcb19832e1ddefe8be535b181f8acbd73 (patch)
treecfb62da848ffed68a7fb808276c560866d1ed2ff /phpBB/includes/functions_content.php
parentb530a4ede452dc52f8d960cb1e6a608ceca00565 (diff)
downloadforums-79a987ffcb19832e1ddefe8be535b181f8acbd73.tar
forums-79a987ffcb19832e1ddefe8be535b181f8acbd73.tar.gz
forums-79a987ffcb19832e1ddefe8be535b181f8acbd73.tar.bz2
forums-79a987ffcb19832e1ddefe8be535b181f8acbd73.tar.xz
forums-79a987ffcb19832e1ddefe8be535b181f8acbd73.zip
[ticket/10510] Moved a $user->lang call into the function.
PHPBB3-10510
Diffstat (limited to 'phpBB/includes/functions_content.php')
-rw-r--r--phpBB/includes/functions_content.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php
index 872d071b91..f2faf20f43 100644
--- a/phpBB/includes/functions_content.php
+++ b/phpBB/includes/functions_content.php
@@ -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,