From faa524faecdf5a8920fea9d169e60dfea32fb735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakobus=20Sch=C3=BCrz?= Date: Fri, 17 Mar 2023 14:22:32 +0100 Subject: [PATCH] revert changes, remove line (from code-review) --- src/App/Page.php | 1 - src/Module/Post/Edit.php | 4 +--- src/Object/Post.php | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/App/Page.php b/src/App/Page.php index 45ec6be0f..23f542f7d 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -261,7 +261,6 @@ class Page implements ArrayAccess // Dropzone '$max_imagesize' => round(\Friendica\Util\Strings::getBytesFromShorthand($config->get('system', 'maximagesize')) / 1000000, 1), - ]) . $this->page['htmlhead']; } diff --git a/src/Module/Post/Edit.php b/src/Module/Post/Edit.php index 5ddc250d8..5fb339e17 100644 --- a/src/Module/Post/Edit.php +++ b/src/Module/Post/Edit.php @@ -28,7 +28,6 @@ use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Renderer; use Friendica\Core\Session\Capability\IHandleUserSessions; -use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\Post; use Friendica\Model\User; @@ -36,7 +35,6 @@ use Friendica\Module\Response; use Friendica\Navigation\SystemMessages; use Friendica\Network\HTTPException; use Friendica\Util\Crypto; -use Friendica\Util\Strings; use Friendica\Util\Profiler; use Psr\Log\LoggerInterface; @@ -184,8 +182,8 @@ class Edit extends BaseModule '$shortpermset' => $this->t('Permissions'), '$compose_link_title' => $this->t('Open Compose page'), - ]); + return $output; } diff --git a/src/Object/Post.php b/src/Object/Post.php index 3f4d061a1..17c0c1f68 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -1068,7 +1068,7 @@ class Post '$prompttext' => DI::l10n()->t('Please enter a image/video/audio/webpage URL:'), '$preview' => DI::l10n()->t('Preview'), '$indent' => $indent, - '$rand_num' => Crypto::randomDigits(12), + '$rand_num' => Crypto::randomDigits(12) ]); }