aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-05-25 20:54:30 +0200
committerJoshyPHP <s9e.dev@gmail.com>2015-05-25 21:33:17 +0200
commit2a7a06da2a166b814732bdfa790e53b80da8a612 (patch)
tree4b8e9179b74183c53f84ebc8feb3da5f081e6566 /phpBB
parente50d9186ce15367e8f6e2aab5c04481ca0046ec6 (diff)
downloadforums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar.gz
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar.bz2
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.tar.xz
forums-2a7a06da2a166b814732bdfa790e53b80da8a612.zip
[ticket/13847] Updated ucp_pm_compose to use the utils service
...when quoting a post PHPBB3-13847
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index 59952182df..67e53718a0 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -947,7 +947,11 @@ function compose_pm($id, $mode, $action, $user_folders = array())
{
$message_link = '';
}
- $message_parser->message = $message_link . '[quote=&quot;' . $quote_username . '&quot;]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
+ $quote_text = $phpbb_container->get('text_formatter.utils')->generate_quote(
+ censor_text(trim($message_parser->message)),
+ array('author' => $quote_username)
+ );
+ $message_parser->message = $message_link . $quote_text . "\n";
}
if (($action == 'reply' || $action == 'quote' || $action == 'quotepost') && !$preview && !$refresh)