diff options
author | brunoais <brunoaiss@gmail.com> | 2013-08-09 17:01:09 +0100 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2013-08-09 17:01:09 +0100 |
commit | b6d6938b9fd99020dd4e5b92ef5fc8dc21a81a78 (patch) | |
tree | 12792ac4cee2c1cf7424fe7d27e5531d0623cc21 /phpBB | |
parent | a053638c3df339ce6fb61876c018a5aa94614487 (diff) | |
download | forums-b6d6938b9fd99020dd4e5b92ef5fc8dc21a81a78.tar forums-b6d6938b9fd99020dd4e5b92ef5fc8dc21a81a78.tar.gz forums-b6d6938b9fd99020dd4e5b92ef5fc8dc21a81a78.tar.bz2 forums-b6d6938b9fd99020dd4e5b92ef5fc8dc21a81a78.tar.xz forums-b6d6938b9fd99020dd4e5b92ef5fc8dc21a81a78.zip |
[ticket/11663] Make generate_text_for_storage return the errors.
generate_text_for_storage does not return anything, all returned values are outputted using the parameters so this uses the returned value with the same idea as many C language functions where the returned value is if all went well or not and if it didn't what went wrong.
PHPBB3-11663
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_content.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_content.php b/phpBB/includes/functions_content.php index 05d3c5fde2..c2cfabe983 100644 --- a/phpBB/includes/functions_content.php +++ b/phpBB/includes/functions_content.php @@ -542,7 +542,7 @@ function generate_text_for_storage(&$text, &$uid, &$bitfield, &$flags, $allow_bb $vars = array('text', 'uid', 'bitfield', 'flags'); extract($phpbb_dispatcher->trigger_event('core.modify_text_for_storage_after', compact($vars))); - return; + return $message_parser->warn_msg; } /** |