Bugfixes for Kimai 1.4.1 (#1158)

* fix missing translation for preset datatable headers
* better dependency check for avatar service
* show only own teams to teamleads
This commit is contained in:
Kevin Papst
2019-10-07 16:04:19 +02:00
committed by GitHub
parent 32aa209b75
commit ae6ed3f23f
5 changed files with 38 additions and 6 deletions

View File

@@ -48,11 +48,8 @@ class DoctorController extends AbstractController
/**
* @var string
*/
protected $projectDirectory;
private $projectDirectory;
/**
* @param string $projectDirectory
*/
public function __construct(string $projectDirectory)
{
$this->projectDirectory = $projectDirectory;
@@ -92,6 +89,12 @@ class DoctorController extends AbstractController
}
}
$results['Freetype Support'] = true;
// @see AvatarService::hasDependencies()
if (!function_exists('imagettfbbox')) {
$results['Freetype Support'] = false;
}
return $results;
}