diff options
| author | Oliver Schramm <oliver.schramm97@gmail.com> | 2017-09-28 23:55:28 +0200 |
|---|---|---|
| committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2017-09-28 23:55:28 +0200 |
| commit | 221e5a01b1cf3369fcb7807c30a8f05ead20076d (patch) | |
| tree | ae30366e8be7d2b8240f90e747ec449d3349b54a /phpBB/phpbb/feed/quote_helper.php | |
| parent | 3da67ce581d35f53b1b7e0ef7bce10f9261f8c6c (diff) | |
| download | forums-221e5a01b1cf3369fcb7807c30a8f05ead20076d.tar forums-221e5a01b1cf3369fcb7807c30a8f05ead20076d.tar.gz forums-221e5a01b1cf3369fcb7807c30a8f05ead20076d.tar.bz2 forums-221e5a01b1cf3369fcb7807c30a8f05ead20076d.tar.xz forums-221e5a01b1cf3369fcb7807c30a8f05ead20076d.zip | |
[ticket/15245] Fix comments, class names and code style
PHPBB3-15245
Diffstat (limited to 'phpBB/phpbb/feed/quote_helper.php')
| -rw-r--r-- | phpBB/phpbb/feed/quote_helper.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/phpBB/phpbb/feed/quote_helper.php b/phpBB/phpbb/feed/quote_helper.php new file mode 100644 index 0000000000..843d075028 --- /dev/null +++ b/phpBB/phpbb/feed/quote_helper.php @@ -0,0 +1,36 @@ +<?php +/** + * + * This file is part of the phpBB Forum Software package. + * + * @copyright (c) phpBB Limited <https://www.phpbb.com> + * @license GNU General Public License, version 2 (GPL-2.0) + * + * For full copyright and license information, please see + * the docs/CREDITS.txt file. + * + */ + +namespace phpbb\feed; + +/** + * Modified quote_helper for feeds (basically just removing all attributes) + */ +class quote_helper extends \phpbb\textformatter\s9e\quote_helper +{ + /** + * {@inheritdoc} + */ + public function inject_metadata($xml) + { + // In feeds we don't want any attributes, so delete all of them + return \s9e\TextFormatter\Utils::replaceAttributes( + $xml, + 'QUOTE', + function () + { + return []; + } + ); + } +} |
