mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
???
This commit is contained in:
parent
3e45348b31
commit
e5477708ad
|
@ -29,7 +29,7 @@
|
||||||
* @package SeedDMS
|
* @package SeedDMS
|
||||||
*/
|
*/
|
||||||
class SeedDMS_SchedulerTaskBase {
|
class SeedDMS_SchedulerTaskBase {
|
||||||
public function execute($task, $dms, $user) {
|
public function execute($task, $dms, $user, $settings) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,7 @@ foreach($tasks as $task) {
|
||||||
if(!$task->getDisabled() && $task->isDue()) {
|
if(!$task->getDisabled() && $task->isDue()) {
|
||||||
if($user = $dms->getUserByLogin('cli_scheduler')) {
|
if($user = $dms->getUserByLogin('cli_scheduler')) {
|
||||||
if($mode == 'run') {
|
if($mode == 'run') {
|
||||||
if($taskobj->execute($task, $dms, $user)) {
|
if($taskobj->execute($task, $dms, $user, $settings)) {
|
||||||
add_log_line("Execution of task ".$task->getExtension()."::".$task->getTask()." successful.");
|
add_log_line("Execution of task ".$task->getExtension()."::".$task->getTask()." successful.");
|
||||||
$task->updateLastNextRun();
|
$task->updateLastNextRun();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user