]> git.mxchange.org Git - friendica.git/commitdiff
Add PageInfo result panels to Debug\Babel
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 17 Jun 2020 08:58:13 +0000 (04:58 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 17 Jun 2020 17:24:44 +0000 (13:24 -0400)
src/Module/Debug/Babel.php

index 5d688d6579c85de51d2a348a8cdde8f00d4937a2..2954bc010c2651e49794405a55787d69147d8901 100644 (file)
@@ -22,6 +22,7 @@
 namespace Friendica\Module\Debug;
 
 use Friendica\BaseModule;
+use Friendica\Content\PageInfo;
 use Friendica\Content\Text;
 use Friendica\Core\Renderer;
 use Friendica\DI;
@@ -113,6 +114,21 @@ class Babel extends BaseModule
                                                'title'   => DI::l10n()->t('Item Tags'),
                                                'content' => visible_whitespace(var_export($tags, true)),
                                        ];
+
+                                       $body2 = PageInfo::appendToBody($bbcode, true);
+                                       $results[] = [
+                                               'title'   => DI::l10n()->t('PageInfo::appendToBody'),
+                                               'content' => visible_whitespace($body2)
+                                       ];
+                                       $html3 = Text\BBCode::convert($body2);
+                                       $results[] = [
+                                               'title'   => DI::l10n()->t('PageInfo::appendToBody => BBCode::convert (raw HTML)'),
+                                               'content' => visible_whitespace($html3)
+                                       ];
+                                       $results[] = [
+                                               'title'   => DI::l10n()->t('PageInfo::appendToBody => BBCode::convert'),
+                                               'content' => $html3
+                                       ];
                                        break;
                                case 'diaspora':
                                        $diaspora = trim($_REQUEST['text']);