egroupware_official/doc/rpm-build/class.uiasyncservice.inc.php.patch

63 lines
2.1 KiB
Diff
Raw Normal View History

2009-06-01 20:32:41 +02:00
Index: egroupware/admin/inc/class.uiasyncservice.inc.php
===================================================================
--- egroupware/admin/inc/class.uiasyncservice.inc.php (Revision 54198)
2009-06-01 20:32:41 +02:00
+++ egroupware/admin/inc/class.uiasyncservice.inc.php (Arbeitskopie)
2014-12-09 19:01:27 +01:00
@@ -95,16 +95,20 @@
{
config::save_value('asyncservice', $GLOBALS['egw_info']['server']['asyncservice']=$_POST['asyncservice'], 'phpgwapi');
2009-06-01 20:32:41 +02:00
}
+/*
if (!$async->only_fallback)
{
$installed = $async->installed();
if (is_array($installed) && isset($installed['cronline']))
2006-03-28 01:38:30 +02:00
{
2009-06-01 20:32:41 +02:00
+*/
$async_use['cron'] = lang('crontab only (recomended)');
+/*
2006-03-28 01:38:30 +02:00
}
2009-06-01 20:32:41 +02:00
}
$async_use[''] = lang('fallback (after each pageview)');
$async_use['off'] = lang('disabled (not recomended)');
+*/
echo '<p><b>'.lang('Run Asynchronous services').'</b>'.
' <select name="asyncservice" onChange="this.form.submit();">';
foreach ($async_use as $key => $label)
2014-12-09 19:01:27 +01:00
@@ -126,8 +130,9 @@
2009-06-01 20:32:41 +02:00
}
else
{
- echo '<p>'.lang('Installed crontab').": \n";
+ echo '<p>'.lang('Installed crontab').": /etc/cron.d/egroupware\n";
+/*
if (is_array($installed) && isset($installed['cronline']))
2006-03-28 01:38:30 +02:00
{
2009-06-01 20:32:41 +02:00
echo "$installed[cronline]</p>";
2014-12-09 19:01:27 +01:00
@@ -142,6 +147,7 @@
2006-03-28 01:38:30 +02:00
}
2009-06-01 20:32:41 +02:00
echo '<p><input type="submit" name="install" value="'.lang('Install crontab')."\">\n".
lang("for the times below (empty values count as '*', all empty = every minute)")."</p>\n";
+*/
}
2006-03-28 01:38:30 +02:00
2009-06-01 20:32:41 +02:00
echo "<hr><table border=0><tr>\n";
2011-06-17 12:24:40 +02:00
Index: egroupware/phpgwapi/inc/class.egw.inc.php
===================================================================
--- egroupware/phpgwapi/inc/class.egw.inc.php (Revision 54198)
2011-06-17 12:24:40 +02:00
+++ egroupware/phpgwapi/inc/class.egw.inc.php (Arbeitskopie)
@@ -618,11 +618,13 @@
2014-04-17 15:56:47 +02:00
_egw_log_exception($ex);
}
2011-06-17 12:24:40 +02:00
}
+/* not needed as rpm uses /etc/cron.d/egroupware
2014-04-17 15:56:47 +02:00
// call the asyncservice check_run function if it is not explicitly set to cron-only
2011-06-17 12:24:40 +02:00
if (!$GLOBALS['egw_info']['server']['asyncservice']) // is default
{
ExecMethod('phpgwapi.asyncservice.check_run','fallback');
}
2014-04-17 15:56:47 +02:00
+ */
2011-06-17 12:24:40 +02:00
$this->db->disconnect();
}
}