<?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;
}
}
// Set the pager
- $pager = new Pager($a->query_string, $perpage);
+ $pager = new Pager(DI::args()->getQueryString(), $perpage);
// Add additional informations (needed for json output)
$notifs['items_page'] = $pager->getItemsPerPage();