diff --git a/admin/inc/class.uiasyncservice.inc.php b/admin/inc/class.uiasyncservice.inc.php index beee52285b..fe12e92494 100644 --- a/admin/inc/class.uiasyncservice.inc.php +++ b/admin/inc/class.uiasyncservice.inc.php @@ -22,11 +22,11 @@ class uiasyncservice { if ($GLOBALS['egw']->acl->check('asyncservice_access',1,'admin')) { - $GLOBALS['egw']->redirect_link('/index.php'); + egw::redirect_link('/index.php'); } $GLOBALS['egw_info']['flags']['app_header'] = lang('Admin').' - '.lang('Asynchronous timed services'); - $GLOBALS['egw']->common->egw_header(); + common::egw_header(); echo parse_navbar(); $async = $GLOBALS['egw']->asyncservice; // use an own instance, as we might set debug=True @@ -88,7 +88,7 @@ class uiasyncservice echo '
'."\n"; $last_run = $async->last_check_run(); - $lr_date = $last_run['end'] ? $GLOBALS['egw']->common->show_date($last_run['end']) : lang('never'); + $lr_date = $last_run['end'] ? common::show_date($last_run['end']) : lang('never'); echo '

'.lang('Async services last executed').': '.$lr_date.' ('.$last_run['run_by'].")

\n
\n"; if (isset($_POST['asyncservice']) && $_POST['asyncservice'] != $GLOBALS['egw_info']['server']['asyncservice']) @@ -162,7 +162,7 @@ class uiasyncservice { $next = $async->next_run($times,True); - echo "

asyncservice::next_run(";print_r($times);echo")=".($next === False ? 'False':"'$next'=".$GLOBALS['egw']->common->show_date($next))."

\n"; + echo "

asyncservice::next_run(";print_r($times);echo")=".($next === False ? 'False':"'$next'=".common::show_date($next))."

\n"; } echo '

 \n"; echo '\n"; @@ -170,12 +170,12 @@ class uiasyncservice echo '

'.lang('The TestJob sends you a mail everytime it is called.')."

\n"; echo '

'.lang('Jobs').":\n"; - if ($jobs = $async->read('%')) + if (($jobs = $async->read('%'))) { echo "\n\n\n"; foreach($jobs as $job) { - echo "\n\n
Id".lang('Next run').''.lang('Times').''.lang('Method').''.lang('Data')."".lang('LoginID')."
$job[id]".$GLOBALS['egw']->common->show_date($job['next']).""; + echo "
$job[id]".common::show_date($job['next']).""; print_r($job['times']); echo "$job[method]"; print_r($job['data']);