From 1cd3b4182595b838a535dd6b6990251db05d49e6 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 30 Mar 2016 22:13:24 -0700 Subject: deprecate $a->get_baseurl() --- mod/notifications.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/notifications.php') diff --git a/mod/notifications.php b/mod/notifications.php index f679fbb3b..f6a75e2c0 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -46,12 +46,12 @@ function notifications_post(&$a) { intval(local_channel()) ); } - goaway($a->get_baseurl(true) . '/notifications/intros'); + goaway(z_root() . '/notifications/intros'); } if($_POST['submit'] == t('Ignore')) { $r = q("UPDATE `intro` SET `ignore` = 1 WHERE `id` = %d", intval($intro_id)); - goaway($a->get_baseurl(true) . '/notifications/intros'); + goaway(z_root() . '/notifications/intros'); } } } @@ -84,7 +84,7 @@ function notifications_content(&$a) { $notifications_available =1; foreach ($r as $it) { $notif_content .= replace_macros($not_tpl,array( - '$item_link' => $a->get_baseurl(true).'/notify/view/'. $it['id'], + '$item_link' => z_root().'/notify/view/'. $it['id'], '$item_image' => $it['photo'], '$item_text' => strip_tags(bbcode($it['msg'])), '$item_when' => relative_date($it['date']) -- cgit v1.2.3 From 9abd95fad3784a10fc48bc40f9b8a75d7d74edda Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 31 Mar 2016 16:06:03 -0700 Subject: static App --- mod/notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/notifications.php') diff --git a/mod/notifications.php b/mod/notifications.php index f6a75e2c0..45eb6483b 100644 --- a/mod/notifications.php +++ b/mod/notifications.php @@ -6,7 +6,7 @@ function notifications_post(&$a) { goaway(z_root()); } - $request_id = (($a->argc > 1) ? $a->argv[1] : 0); + $request_id = ((App::$argc > 1) ? App::$argv[1] : 0); if($request_id === "all") return; -- cgit v1.2.3