src/Webtrees/Module/AdminTasks/Model/TaskProvider.php
protected function loadTask($task_name) {
		try {
			if (file_exists($this->root_path . $task_name .'.php')) {
				$task = include $this->root_path . $task_name .'.php';
				if($task instanceof AbstractTask) {
				    $task->setProvider($this);
					return $task;
				}
			}
		}
		catch(\Exception $ex) { }
		
		return null;
	}
protected function loadTask($task_name) {
		try {
			if (file_exists($this->root_path . $task_name .'.php')) {
				$task = include $this->root_path . $task_name .'.php';
				if($task instanceof AbstractTask) {
				    $task->setProvider($this);
					return $task;
				}
			}
		}
		catch(\Exception $ex) { }
		
		return null;
	}
protected function loadTask ( $ task_name ) { try { if ( file_exists ( $ this -> root_path . $ task_name . '.php' ) ) { $ task = include $ this -> root_path . $ task_name . '.php' ; if ( $ task instanceof AbstractTask ) { $ task -> setProvider ( $ this ) ; return $ task ; } } } catch ( \ Exception $ ex ) { } return null ; }
Load a task object from a file.

@param string $task_name Name of the task to load.
Load a task object from a file .