Add Model\Introduction class to DI registry

This commit is contained in:
Philipp Holzer 2019-12-27 15:20:09 +01:00
commit df0c05d635
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
5 changed files with 10 additions and 15 deletions

View file

@ -31,9 +31,7 @@ function notifications_post(App $a)
}
if ($request_id) {
/** @var Introduction $Intro */
$Intro = \Friendica\BaseObject::getClass(Introduction::class);
$Intro->fetch(['id' => $request_id, 'uid' => local_user()]);
$Intro = DI::intro()->fetch(['id' => $request_id, 'uid' => local_user()]);
switch ($_POST['submit']) {
case L10n::t('Discard'):