Fixed the rest of the broken stuff after the dependency upgrade party

This commit is contained in:
Bernd Bestel
2018-07-12 19:12:31 +02:00
parent 778191fd11
commit 37d1377f99
27 changed files with 271 additions and 236 deletions

View File

@@ -122,3 +122,16 @@ function IsIsoDateTime($dateTimeString)
$d = DateTime::createFromFormat('Y-m-d H:i:s', $dateTimeString);
return $d && $d->format('Y-m-d H:i:s') === $dateTimeString;
}
function BoolToString(bool $bool)
{
return $bool ? 'true' : 'false';
}
function Setting(string $name, string $value)
{
if (!defined($name))
{
define($name, $value);
}
}