]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/ItemBody.php
Merge branch 'develop' into rewrite/gravity-constants
[friendica.git] / src / Module / Debug / ItemBody.php
index 1477b629d0b01af3075f053ae7fe0720c98e3047..a9a3c0b50b0f593022b59568b562cb1d324d79ef 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Module\Debug;
 
 use Friendica\BaseModule;
+use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Model\Post;
 use Friendica\Network\HTTPException;
@@ -48,7 +49,7 @@ class ItemBody extends BaseModule
                if (!empty($item)) {
                        if (DI::mode()->isAjax()) {
                                echo str_replace("\n", '<br />', $item['body']);
-                               exit();
+                               System::exit();
                        } else {
                                return str_replace("\n", '<br />', $item['body']);
                        }