From 30fcda7576681ff5e311f720a8d3a73ac808ae82 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Sun, 22 Jan 2012 19:27:56 +0100 Subject: nav: fix intro notification url, fix "See all notifications" url and make it translatable --- include/nav.php | 1 + mod/ping.php | 2 +- view/nav.tpl | 2 +- view/theme/testbubble/nav.tpl | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/nav.php b/include/nav.php index 4c75a495b..36a3edd2a 100755 --- a/include/nav.php +++ b/include/nav.php @@ -116,6 +116,7 @@ function nav(&$a) { if($_SESSION['page_flags'] == PAGE_NORMAL) { $nav['introductions'] = array('notifications/intros', t('Introductions'), "", t('Friend Requests')); $nav['notifications'] = array('notifications', t('Notifications'), "", t('Notifications')); + $nav['notifications_all']=array('notifications/network', t('See all notifications', "", "")); } diff --git a/mod/ping.php b/mod/ping.php index 35f6c53ae..db68332bd 100755 --- a/mod/ping.php +++ b/mod/ping.php @@ -145,7 +145,7 @@ function ping_init(&$a) { echo ' '; if ($intro>0){ foreach ($intros as $i) { - echo xmlize( $a->get_baseurl().'/notifications/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), t("{0} wants to be your friend") ); + echo xmlize( $a->get_baseurl().'/notifications/intros/'.$i['id'], $i['name'], $i['url'], $i['photo'], relative_date($i['datetime']), t("{0} wants to be your friend") ); }; } if ($mail>0){ diff --git a/view/nav.tpl b/view/nav.tpl index d9255d86c..9831260b3 100755 --- a/view/nav.tpl +++ b/view/nav.tpl @@ -43,7 +43,7 @@ diff --git a/view/theme/testbubble/nav.tpl b/view/theme/testbubble/nav.tpl index c7d616826..bb4da22cb 100755 --- a/view/theme/testbubble/nav.tpl +++ b/view/theme/testbubble/nav.tpl @@ -9,7 +9,7 @@ {{ if $nav.notifications }}{{ endif }} {{ if $nav.messages }}{{ endif }} -- cgit v1.2.3