diff --git a/addressbook/inc/hook_notifywindow.inc.php b/addressbook/inc/hook_notifywindow.inc.php
index 0fb7a3701e..e895b299ba 100644
--- a/addressbook/inc/hook_notifywindow.inc.php
+++ b/addressbook/inc/hook_notifywindow.inc.php
@@ -15,15 +15,15 @@
if($d1 == 'htt' || $d1 == 'ftp' )
{
echo "Failed attempt to break in via an old Security Hole!
\n";
- $phpgw->common->phpgw_exit();
+ $GLOBALS['phpgw']->common->phpgw_exit();
}
unset($d1);
$tmp_app_inc = PHPGW_APP_INC;
- define('PHPGW_APP_INC',$phpgw->common->get_inc_dir('addressbook'));
+ define('PHPGW_APP_INC',$GLOBALS['phpgw']->common->get_inc_dir('addressbook'));
- if ($phpgw_info['user']['apps']['addressbook']
- && $phpgw_info['user']['preferences']['addressbook']['mainscreen_showbirthdays'])
+ if ($GLOBALS['phpgw_info']['user']['apps']['addressbook']
+ && $GLOBALS['phpgw_info']['user']['preferences']['addressbook']['mainscreen_showbirthdays'])
{
echo "\n\n";
@@ -33,29 +33,29 @@
"n_family" => 'n_family',
"bday" => 'bday'
);
- $now = time() - ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset']));
- $today = $phpgw->common->show_date($now,'n/d/');
+ $now = time() - ((60 * 60) * intval($GLOBALS['phpgw_info']['user']['preferences']['common']['tz_offset']));
+ $today = $GLOBALS['phpgw']->common->show_date($now,'n/d/');
// echo $today."\n";
- $bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$phpgw_info["user"]["account_id"]);
+ $bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$GLOBALS['phpgw_info']["user"]["account_id"]);
while(list($key,$val) = @each($bdays))
{
$tmp = ''
+ . $GLOBALS['phpgw']->link('/.php','menuaction=addressbook.uiaddressbook.view&ab_id=' . $val['id']) . '">'
. $val['n_given'] . ' ' . $val['n_family'] . '';
echo '