implement feeback

develop
Philipp 2022-10-25 08:07:42 +02:00
rodzic b5bc1b0844
commit f03c5c7f89
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 24A7501396EB5432
3 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -334,9 +334,9 @@ class App
* @param L10n $l10n The translator instance * @param L10n $l10n The translator instance
* @param App\Arguments $args The Friendica Arguments of the call * @param App\Arguments $args The Friendica Arguments of the call
* @param IManagePersonalConfigValues $pConfig Personal configuration * @param IManagePersonalConfigValues $pConfig Personal configuration
* @param IHandleUserSessions $sessions The (User)Session handler * @param IHandleUserSessions $session The (User)Session handler
*/ */
public function __construct(Database $database, IManageConfigValues $config, App\Mode $mode, BaseURL $baseURL, LoggerInterface $logger, Profiler $profiler, L10n $l10n, Arguments $args, IManagePersonalConfigValues $pConfig, IHandleUserSessions $sessions) public function __construct(Database $database, IManageConfigValues $config, App\Mode $mode, BaseURL $baseURL, LoggerInterface $logger, Profiler $profiler, L10n $l10n, Arguments $args, IManagePersonalConfigValues $pConfig, IHandleUserSessions $session)
{ {
$this->database = $database; $this->database = $database;
$this->config = $config; $this->config = $config;
@ -347,7 +347,7 @@ class App
$this->l10n = $l10n; $this->l10n = $l10n;
$this->args = $args; $this->args = $args;
$this->pConfig = $pConfig; $this->pConfig = $pConfig;
$this->session = $sessions; $this->session = $session;
$this->load(); $this->load();
} }

Wyświetl plik

@ -500,7 +500,7 @@ class Conversation
if (!$update) { if (!$update) {
$live_update_div = '<div id="live-display"></div>' . "\r\n" $live_update_div = '<div id="live-display"></div>' . "\r\n"
. "<script> var profile_uid = " . $this->session->getLocalUserId() ?? 0 . ";" . "<script> var profile_uid = " . ($this->session->getLocalUserId() ?: 0) . ";"
. "</script>"; . "</script>";
} }
} elseif ($mode === 'community') { } elseif ($mode === 'community') {

Wyświetl plik

@ -44,8 +44,7 @@ class Logout extends BaseModule
protected $cache; protected $cache;
/** @var Cookie */ /** @var Cookie */
protected $cookie; protected $cookie;
/** @var IHandleUserSessions /** @var IHandleUserSessions */
*/
protected $session; protected $session;
public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, ICanCache $cache, Cookie $cookie, IHandleUserSessions $session, array $server, array $parameters = []) public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, ICanCache $cache, Cookie $cookie, IHandleUserSessions $session, array $server, array $parameters = [])