diff --git a/about.php b/about.php index 1c83b54b58..212a86916f 100644 --- a/about.php +++ b/about.php @@ -19,7 +19,7 @@ $app = $HTTP_GET_VARS['app']; if ($app) { - $included = $GLOBALS['phpgw']->common->hook_single('about',$app); + $included = $GLOBALS['phpgw']->hooks->single('about',$app); } else { diff --git a/addressbook/inc/class.uiaddressbook.inc.php b/addressbook/inc/class.uiaddressbook.inc.php index 3baaf7abe2..2942f1f911 100644 --- a/addressbook/inc/class.uiaddressbook.inc.php +++ b/addressbook/inc/class.uiaddressbook.inc.php @@ -1001,7 +1001,7 @@ $this->template->pfp('out','view_t'); - $GLOBALS['phpgw']->common->hook('addressbook_view'); + $GLOBALS['phpgw']->hooks->process('addressbook_view'); } function html_1button_form($name,$lang,$link) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index 68f660ac89..b6ba188af7 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -141,13 +141,13 @@ if($appname <> 'admin') { - $GLOBALS['phpgw']->common->hook_single('deleteaccount', $appname); + $GLOBALS['phpgw']->hooks->single('deleteaccount', $appname); } } } - $GLOBALS['phpgw']->common->hook_single('deleteaccount','preferences'); - $GLOBALS['phpgw']->common->hook_single('deleteaccount','admin'); + $GLOBALS['phpgw']->hooks->single('deleteaccount','preferences'); + $GLOBALS['phpgw']->hooks->single('deleteaccount','admin'); $basedir = $GLOBALS['phpgw_info']['server']['files_dir'] . SEP . 'users' . SEP; @@ -261,7 +261,7 @@ { if (!$t[($app_name=='admin'?'common':$app_name)]) { - $GLOBALS['phpgw']->common->hook_single('add_def_pref', $app_name); + $GLOBALS['phpgw']->hooks->single('add_def_pref', $app_name); $docommit = True; } } @@ -478,7 +478,7 @@ { if (!$t[($app_name=='admin'?'common':$app_name)]) { - $GLOBALS['phpgw']->common->hook_single('add_def_pref', $app_name); + $GLOBALS['phpgw']->hooks->single('add_def_pref', $app_name); $docommit = True; } } diff --git a/admin/inc/class.soaccounts.inc.php b/admin/inc/class.soaccounts.inc.php index 9ca297ece1..57e8a86a57 100755 --- a/admin/inc/class.soaccounts.inc.php +++ b/admin/inc/class.soaccounts.inc.php @@ -96,12 +96,12 @@ /* if ($apps_after) { $GLOBALS['pref'] = CreateObject('phpgwapi.preferences',$userData['account_id']); - $GLOBALS['phpgw']->common->hook_single('add_def_pref','admin'); + $GLOBALS['phpgw']->hooks->single('add_def_pref','admin'); while ($apps = each($apps_after)) { if (strcasecmp ($apps[0], 'admin') != 0) { - $GLOBALS['phpgw']->common->hook_single('add_def_pref', $apps[1]); + $GLOBALS['phpgw']->hooks->single('add_def_pref', $apps[1]); } } $GLOBALS['pref']->save_repository(False); @@ -116,7 +116,7 @@ // start inlcuding other admin tools while($app = each($apps_after)) { - $GLOBALS['phpgw']->common->hook_single('add_user_data', $value); + $GLOBALS['phpgw']->hooks->single('add_user_data', $value); } */ return $userData['account_id']; diff --git a/admin/inc/class.uiaclmanager.inc.php b/admin/inc/class.uiaclmanager.inc.php index 420a120c3c..52efeb0428 100644 --- a/admin/inc/class.uiaclmanager.inc.php +++ b/admin/inc/class.uiaclmanager.inc.php @@ -36,7 +36,7 @@ { $this->common_header(); - $GLOBALS['phpgw']->common->hook('acl_manager',array('preferences')); + $GLOBALS['phpgw']->hooks->process('acl_manager',array('preferences')); $this->template->set_file(array( 'app_list' => 'acl_applist.tpl' @@ -99,7 +99,7 @@ function access_form() { - $GLOBALS['phpgw']->common->hook_single('acl_manager',$GLOBALS['acl_app']); + $GLOBALS['phpgw']->hooks->single('acl_manager',$GLOBALS['acl_app']); $location = base64_decode($GLOBALS['location']); $acl_manager = $GLOBALS['acl_manager'][$GLOBALS['acl_app']][$location]; diff --git a/admin/inc/class.uiconfig.inc.php b/admin/inc/class.uiconfig.inc.php index 47abae9414..d2cf145455 100644 --- a/admin/inc/class.uiconfig.inc.php +++ b/admin/inc/class.uiconfig.inc.php @@ -70,7 +70,7 @@ if ($GLOBALS['HTTP_POST_VARS']['submit']) { /* Load hook file with functions to validate each config (one/none/all) */ - $GLOBALS['phpgw']->common->hook_single('config_validate',$appname); + $GLOBALS['phpgw']->hooks->single('config_validate',$appname); while (list($key,$config) = each($GLOBALS['HTTP_POST_VARS']['newsettings'])) { @@ -145,7 +145,7 @@ $vars = $t->get_undefined('body'); - $GLOBALS['phpgw']->common->hook_single('config',$appname); + $GLOBALS['phpgw']->hooks->single('config',$appname); while (list($null,$value) = each($vars)) { diff --git a/admin/inc/class.uimenuclass.inc.php b/admin/inc/class.uimenuclass.inc.php index 6cb9de8165..9ce6547983 100644 --- a/admin/inc/class.uimenuclass.inc.php +++ b/admin/inc/class.uimenuclass.inc.php @@ -92,7 +92,7 @@ break; } - $GLOBALS['phpgw']->common->hook($_hookname); + $GLOBALS['phpgw']->hooks->process($_hookname); if (count($GLOBALS['menuData']) > 1) { diff --git a/admin/index.php b/admin/index.php index 821bb84269..e56e864e33 100755 --- a/admin/index.php +++ b/admin/index.php @@ -72,7 +72,7 @@ section_end(); } - $GLOBALS['phpgw']->common->hook('admin'); + $GLOBALS['phpgw']->hooks->process('admin'); $GLOBALS['admin_tpl']->pparse('out','list'); $GLOBALS['phpgw']->common->phpgw_footer(); diff --git a/doc/inlinedocparser.php b/doc/inlinedocparser.php index 3349798699..7cbbac8d83 100755 --- a/doc/inlinedocparser.php +++ b/doc/inlinedocparser.php @@ -323,7 +323,7 @@ $returndoc['value']['file'][] = $fn; } } - if (isset($returndoc['value']) && is_array($returndoc['value'])) + if (@isset($returndoc['value']) && is_array($returndoc['value'])) { $doc_array[$startstop[$key]][0] = $returndoc['value']; } diff --git a/filemanager/index.php b/filemanager/index.php index 662138f41d..808a55f0d7 100755 --- a/filemanager/index.php +++ b/filemanager/index.php @@ -506,7 +506,7 @@ if ($messages) if (!is_array ($GLOBALS['settings'])) { $pref = CreateObject ('phpgwapi.preferences', $GLOBALS['userinfo']['username']); - $GLOBALS['phpgw']->common->hook_single ('add_def_pref', $GLOBALS['appname']); + $GLOBALS['phpgw']->hooks->single ('add_def_pref', $GLOBALS['appname']); $pref->save_repository (True); $pref_array = $pref->read_repository (); $GLOBALS['settings'] = $pref_array[$GLOBALS['appname']]; diff --git a/home.php b/home.php index d7bd9bd0f1..dea537e56b 100755 --- a/home.php +++ b/home.php @@ -239,7 +239,7 @@ ); } @reset($sorted_apps); - $GLOBALS['phpgw']->common->hook('home',$sorted_apps); + $GLOBALS['phpgw']->hooks->process('home',$sorted_apps); if($GLOBALS['portal_order']) { diff --git a/logout.php b/logout.php index 74329e685d..e80c05694c 100755 --- a/logout.php +++ b/logout.php @@ -41,7 +41,7 @@ } rmdir($GLOBALS['phpgw_info']['server']['temp_dir'] . SEP . $GLOBALS['sessionid']); } - $GLOBALS['phpgw']->common->hook('logout'); + $GLOBALS['phpgw']->hooks->process('logout'); $GLOBALS['phpgw']->session->destroy($GLOBALS['sessionid'],$GLOBALS['kp3']); } else diff --git a/notify.php b/notify.php index 701d652665..40b52b247e 100644 --- a/notify.php +++ b/notify.php @@ -38,7 +38,7 @@
Check Now |