1
1
Fork 0

Move remaining functions

update remaining function calls
This commit is contained in:
Adam Magness 2018-01-27 08:25:54 -05:00
commit ca76e49c23
19 changed files with 58 additions and 51 deletions

View file

@ -10,8 +10,7 @@ use Friendica\Core\L10n;
use Friendica\Core\NotificationsManager;
use Friendica\Core\System;
use Friendica\Database\DBM;
require_once "include/network.php";
use Friendica\Util\Network;
function notifications_post(App $a) {
@ -139,8 +138,9 @@ function notifications_content(App $a) {
$notifs['page'] = $a->pager['page'];
// Json output
if(intval($json) === 1)
json_return_and_die($notifs);
if (intval($json) === 1) {
Network::jsonReturnAndDie($notifs);
}
$notif_tpl = get_markup_template('notifications.tpl');