mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +00:00
???
This commit is contained in:
parent
3e45348b31
commit
e5477708ad
|
@ -29,7 +29,7 @@
|
|||
* @package SeedDMS
|
||||
*/
|
||||
class SeedDMS_SchedulerTaskBase {
|
||||
public function execute($task, $dms, $user) {
|
||||
public function execute($task, $dms, $user, $settings) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ foreach($tasks as $task) {
|
|||
if(!$task->getDisabled() && $task->isDue()) {
|
||||
if($user = $dms->getUserByLogin('cli_scheduler')) {
|
||||
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.");
|
||||
$task->updateLastNextRun();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user