public function downloadData()
{
// Download file, or handle error
$data = $this->wikimate->download($this->getUrl());
if ($data === null) {
$this->error = $this->wikimate->getError();
// Copy error if there was one
} else {
$this->error = null;
// Reset the error status
}
return $data;
}