<?php
/**
* @file mod/notifications.php
- * @brief The notifications module
+ * The notifications module
*/
use Friendica\App;
}
if ($request_id) {
- /** @var Introduction $Intro */
- $Intro = \Friendica\BaseObject::getClass(Introduction::class);
- $Intro->fetch(['id' => $request_id, 'uid' => local_user()]);
+ $intro = DI::intro()->selectFirst(['id' => $request_id, 'uid' => local_user()]);
switch ($_POST['submit']) {
case L10n::t('Discard'):
- $Intro->discard();
+ $intro->discard();
break;
case L10n::t('Ignore'):
- $Intro->ignore();
+ $intro->ignore();
break;
}