mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Remove unused calls of DI::app()
This commit is contained in:
parent
4f1a4c4c8a
commit
702abb2830
5 changed files with 2 additions and 10 deletions
|
@ -27,7 +27,6 @@ class Directory extends BaseModule
|
||||||
{
|
{
|
||||||
protected function content(array $request = []): string
|
protected function content(array $request = []): string
|
||||||
{
|
{
|
||||||
$app = DI::app();
|
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
|
|
||||||
if (($config->get('system', 'block_public') && !DI::userSession()->isAuthenticated()) ||
|
if (($config->get('system', 'block_public') && !DI::userSession()->isAuthenticated()) ||
|
||||||
|
|
|
@ -30,7 +30,6 @@ class Invite extends BaseModule
|
||||||
|
|
||||||
self::checkFormSecurityTokenRedirectOnError('/', 'send_invite');
|
self::checkFormSecurityTokenRedirectOnError('/', 'send_invite');
|
||||||
|
|
||||||
$app = DI::app();
|
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
|
|
||||||
$max_invites = intval($config->get('system', 'max_invites'));
|
$max_invites = intval($config->get('system', 'max_invites'));
|
||||||
|
@ -117,7 +116,6 @@ class Invite extends BaseModule
|
||||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$app = DI::app();
|
|
||||||
$config = DI::config();
|
$config = DI::config();
|
||||||
|
|
||||||
$inviteOnly = false;
|
$inviteOnly = false;
|
||||||
|
|
|
@ -22,8 +22,6 @@ class NoScrape extends BaseModule
|
||||||
{
|
{
|
||||||
protected function rawContent(array $request = [])
|
protected function rawContent(array $request = [])
|
||||||
{
|
{
|
||||||
$a = DI::app();
|
|
||||||
|
|
||||||
if (isset($this->parameters['nick'])) {
|
if (isset($this->parameters['nick'])) {
|
||||||
// Get infos about a specific nick (public)
|
// Get infos about a specific nick (public)
|
||||||
$which = $this->parameters['nick'];
|
$which = $this->parameters['nick'];
|
||||||
|
|
|
@ -42,8 +42,6 @@ class Schedule extends BaseProfile
|
||||||
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$a = DI::app();
|
|
||||||
|
|
||||||
$o = self::getTabsHTML('schedule', true, DI::userSession()->getLocalUserNickname(), false);
|
$o = self::getTabsHTML('schedule', true, DI::userSession()->getLocalUserNickname(), false);
|
||||||
|
|
||||||
$schedule = [];
|
$schedule = [];
|
||||||
|
|
|
@ -1180,7 +1180,6 @@ class Post
|
||||||
*/
|
*/
|
||||||
protected function checkWallToWall()
|
protected function checkWallToWall()
|
||||||
{
|
{
|
||||||
$a = DI::app();
|
|
||||||
$conv = $this->getThread();
|
$conv = $this->getThread();
|
||||||
$this->wall_to_wall = false;
|
$this->wall_to_wall = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue