fix missing DI
This commit is contained in:
parent
bd0bc943ad
commit
177bf9b67b
2 changed files with 5 additions and 13 deletions
|
@ -1141,9 +1141,7 @@ function photos_content(App $a)
|
||||||
'$qcomment' => $qcomment,
|
'$qcomment' => $qcomment,
|
||||||
'$rand_num' => Crypto::randomDigits(12),
|
'$rand_num' => Crypto::randomDigits(12),
|
||||||
// Dropzone
|
// Dropzone
|
||||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||||
// don't know, if DI::config.. does not work here, so it is set to a manual value
|
|
||||||
'$max_imagesize' => 100000,
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1200,9 +1198,7 @@ function photos_content(App $a)
|
||||||
'$qcomment' => $qcomment,
|
'$qcomment' => $qcomment,
|
||||||
'$rand_num' => Crypto::randomDigits(12),
|
'$rand_num' => Crypto::randomDigits(12),
|
||||||
// Dropzone
|
// Dropzone
|
||||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||||
// don't know, if DI::config.. does not work here, so it is set to a manual value
|
|
||||||
'$max_imagesize' => 200000
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1278,9 +1274,7 @@ function photos_content(App $a)
|
||||||
'$qcomment' => $qcomment,
|
'$qcomment' => $qcomment,
|
||||||
'$rand_num' => Crypto::randomDigits(12),
|
'$rand_num' => Crypto::randomDigits(12),
|
||||||
// Dropzone
|
// Dropzone
|
||||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||||
// don't know, if DI::config.. does not work here, so it is set to a manual value
|
|
||||||
'$max_imagesize' => 300000
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ use Friendica\Navigation\SystemMessages;
|
||||||
use Friendica\Network\HTTPException;
|
use Friendica\Network\HTTPException;
|
||||||
use Friendica\Util\Crypto;
|
use Friendica\Util\Crypto;
|
||||||
use Friendica\Util\Profiler;
|
use Friendica\Util\Profiler;
|
||||||
|
use Friendica\DI;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -183,10 +184,7 @@ class Edit extends BaseModule
|
||||||
|
|
||||||
'$compose_link_title' => $this->t('Open Compose page'),
|
'$compose_link_title' => $this->t('Open Compose page'),
|
||||||
// Dropzone
|
// Dropzone
|
||||||
//'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
'$max_imagesize' => DI::config()->get('system', 'maximagesize'),
|
||||||
// DI::config.. does not work here, so it is set to a manual value
|
|
||||||
'$max_imagesize' => 500000,
|
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in a new issue