diff options
author | lavigor <lavigor@users.noreply.github.com> | 2016-02-27 16:55:05 +0300 |
---|---|---|
committer | lavigor <lavigor@users.noreply.github.com> | 2016-02-27 16:55:05 +0300 |
commit | 276d48ed4f970b42f20a7013d27c6a169230ae74 (patch) | |
tree | cff1f85a053ef8c53b67699d87869abd674167f3 /phpBB/includes/mcp/mcp_warn.php | |
parent | 9a5de3fc1e3cccff612ea40e900a5825552279a1 (diff) | |
download | forums-276d48ed4f970b42f20a7013d27c6a169230ae74.tar forums-276d48ed4f970b42f20a7013d27c6a169230ae74.tar.gz forums-276d48ed4f970b42f20a7013d27c6a169230ae74.tar.bz2 forums-276d48ed4f970b42f20a7013d27c6a169230ae74.tar.xz forums-276d48ed4f970b42f20a7013d27c6a169230ae74.zip |
[ticket/14134] Fix code comments.
PHPBB3-14134
Diffstat (limited to 'phpBB/includes/mcp/mcp_warn.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_warn.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php index 7d5e241eee..5dcfa8c474 100644 --- a/phpBB/includes/mcp/mcp_warn.php +++ b/phpBB/includes/mcp/mcp_warn.php @@ -531,10 +531,9 @@ function add_warning($user_row, $warning, $send_pm = true, $post_id = 0) include_once($phpbb_root_path . 'includes/message_parser.' . $phpEx); // Okay we need to get the reason from the warned users language - // Only load up the language pack if the language is different to the current one + // Attempt to translate warning to language of user being warned if user's language differs from issuer's language if ($user_row['user_lang'] != $user->lang_name) { - // Load up the language pack $lang = array(); $user_row['user_lang'] = (file_exists($phpbb_root_path . 'language/' . basename($user_row['user_lang']) . "/mcp." . $phpEx)) ? $user_row['user_lang'] : $config['default_lang']; @@ -543,7 +542,7 @@ function add_warning($user_row, $warning, $send_pm = true, $post_id = 0) $warn_pm_subject = $lang['WARNING_PM_SUBJECT']; $warn_pm_body = sprintf($lang['WARNING_PM_BODY'], $warning); - unset($lang); // Free memory + unset($lang); } else { |