Vergleich inc/functions_task.php - 1.8.6 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 50Zeile 50
	{
$db->update_query("tasks", array("locked" => TIME_NOW), "tid='{$task['tid']}'");
}

	{
$db->update_query("tasks", array("locked" => TIME_NOW), "tid='{$task['tid']}'");
}

 

$file = basename($task['file'], '.php');


// The task file does not exist


// The task file does not exist

	if(!file_exists(MYBB_ROOT."inc/tasks/{$task['file']}.php"))
{

	if(!file_exists(MYBB_ROOT."inc/tasks/{$file}.php"))
{

		if($task['logging'] == 1)
{
add_task_log($task, $lang->missing_task);
}

		if($task['logging'] == 1)
{
add_task_log($task, $lang->missing_task);
}

 

// If task file does not exist, disable task and inform the administrator
$updated_task = array(
"enabled" => 0,
"locked" => 0
);
$db->update_query("tasks", $updated_task, "tid='{$task['tid']}'");

$subject = $lang->sprintf($lang->email_broken_task_subject, $mybb->settings['bbname']);
$message = $lang->sprintf($lang->email_broken_task, $mybb->settings['bbname'], $mybb->settings['bburl'], $task['title']);

my_mail($mybb->settings['adminemail'], $subject, $message, $mybb->settings['adminemail']);


		$cache->update_tasks();
return false;
}

		$cache->update_tasks();
return false;
}

Zeile 67Zeile 82
		// Update the nextrun time now, so if the task causes a fatal error, it doesn't get stuck first in the queue
$nextrun = fetch_next_run($task);
$db->update_query("tasks", array("nextrun" => $nextrun), "tid='{$task['tid']}'");

		// Update the nextrun time now, so if the task causes a fatal error, it doesn't get stuck first in the queue
$nextrun = fetch_next_run($task);
$db->update_query("tasks", array("nextrun" => $nextrun), "tid='{$task['tid']}'");


include_once MYBB_ROOT."inc/tasks/{$task['file']}.php";

		
include_once MYBB_ROOT."inc/tasks/{$file}.php";

		$function = "task_{$task['file']}";
if(function_exists($function))
{

		$function = "task_{$task['file']}";
if(function_exists($function))
{