Add a basic task search
This commit is contained in:
@@ -43,4 +43,9 @@ class Request
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
public function isPost()
|
||||
{
|
||||
return isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] === 'POST';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,10 @@ namespace Translator {
|
||||
|
||||
function datetime($format, $timestamp)
|
||||
{
|
||||
if (! $timestamp) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return strftime(get($format, $format), (int) $timestamp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user