aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-08 14:51:46 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-18 02:58:33 +0200
commit7b552152b416d9f0c2e873f6f70c4d3cec575ea6 (patch)
tree241e8b8e7f143aed43e01d567aca4a2169eda781 /phpBB
parentdeadc0665298f18a937fc959da449e9098873c0b (diff)
downloadforums-7b552152b416d9f0c2e873f6f70c4d3cec575ea6.tar
forums-7b552152b416d9f0c2e873f6f70c4d3cec575ea6.tar.gz
forums-7b552152b416d9f0c2e873f6f70c4d3cec575ea6.tar.bz2
forums-7b552152b416d9f0c2e873f6f70c4d3cec575ea6.tar.xz
forums-7b552152b416d9f0c2e873f6f70c4d3cec575ea6.zip
[ticket/13801] Updated comments for clarity
PHPBB3-13801
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/message_parser.php1
-rw-r--r--phpBB/phpbb/textformatter/parser_interface.php3
-rw-r--r--phpBB/phpbb/textformatter/s9e/parser.php2
3 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php
index 3edc7fe1c6..496a7885f1 100644
--- a/phpBB/includes/message_parser.php
+++ b/phpBB/includes/message_parser.php
@@ -1256,6 +1256,7 @@ class parse_message extends bbcode_firstpass
{
foreach ($errors as $i => $args)
{
+ // Translate each error with $user->lang()
$errors[$i] = call_user_func_array(array($user, 'lang'), $args);
}
$this->warn_msg = array_merge($this->warn_msg, $errors);
diff --git a/phpBB/phpbb/textformatter/parser_interface.php b/phpBB/phpbb/textformatter/parser_interface.php
index 3cb9f8e977..ad611fb5b4 100644
--- a/phpBB/phpbb/textformatter/parser_interface.php
+++ b/phpBB/phpbb/textformatter/parser_interface.php
@@ -82,7 +82,8 @@ interface parser_interface
/**
* Get the list of errors that were generated during last parsing
*
- * @return array
+ * @return array[] Array of arrays. Each array contains a lang string at index 0 plus any number
+ * of optional parameters
*/
public function get_errors();
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php
index 178669d84f..ee033f6d21 100644
--- a/phpBB/phpbb/textformatter/s9e/parser.php
+++ b/phpBB/phpbb/textformatter/s9e/parser.php
@@ -186,7 +186,7 @@ class parser implements \phpbb\textformatter\parser_interface
/**
* {@inheritdoc}
*
- * This will translate the log entries found in s9e\TextFormatter's logger into phpBB error
+ * This will convert the log entries found in s9e\TextFormatter's logger into phpBB error
* messages
*/
public function get_errors()