X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDebug%2FItemBody.php;h=6bc1419d3463e08e0d550c03b756bbb09d6013f9;hb=19507761422e8b75b65875c707f9b9b01428c792;hp=e066e7656a028c0fd00b035e1d2d7283bc2a961c;hpb=4016a576d55d2e9b4b3acbe515a73b8c025ef215;p=friendica.git
diff --git a/src/Module/Debug/ItemBody.php b/src/Module/Debug/ItemBody.php
index e066e7656a..6bc1419d34 100644
--- a/src/Module/Debug/ItemBody.php
+++ b/src/Module/Debug/ItemBody.php
@@ -1,6 +1,6 @@
getLocalUserId()) {
throw new HTTPException\UnauthorizedException(DI::l10n()->t('Access denied.'));
}
@@ -43,13 +44,12 @@ class ItemBody extends BaseModule
$itemId = intval($this->parameters['item']);
- $item = Post::selectFirst(['body'], ['uid' => [0, local_user()], 'uri-id' => $itemId]);
+ $item = Post::selectFirst(['body'], ['uid' => [0, DI::userSession()->getLocalUserId()], 'uri-id' => $itemId]);
if (!empty($item)) {
if (DI::mode()->isAjax()) {
echo str_replace("\n", '
', $item['body']);
- DI::page()->logRuntime();
- exit();
+ System::exit();
} else {
return str_replace("\n", '
', $item['body']);
}