miniflux-legacy/app/functions.php

38 lines
740 B
PHP
Raw Permalink Normal View History

2016-08-19 03:02:49 +02:00
<?php
function tne()
{
2016-08-25 03:17:58 +02:00
return call_user_func_array('\Miniflux\Translator\translate_no_escaping', func_get_args());
2016-08-19 03:02:49 +02:00
}
function t()
{
2016-08-25 03:17:58 +02:00
return call_user_func_array('\Miniflux\Translator\translate', func_get_args());
2016-08-19 03:02:49 +02:00
}
function c()
{
2016-08-25 03:17:58 +02:00
return call_user_func_array('\Miniflux\Translator\currency', func_get_args());
2016-08-19 03:02:49 +02:00
}
function n()
{
2016-08-25 03:17:58 +02:00
return call_user_func_array('\Miniflux\Translator\number', func_get_args());
2016-08-19 03:02:49 +02:00
}
function dt()
{
2016-08-25 03:17:58 +02:00
return call_user_func_array('\Miniflux\Translator\datetime', func_get_args());
2016-08-19 03:02:49 +02:00
}
function get_cli_option($option, array $options)
{
$value = null;
if (! empty($options[$option]) && ctype_digit($options[$option])) {
$value = (int) $options[$option];
}
return $value;
}