miniflux-legacy/app/functions.php
Frederic Guillot 82df35a59b Change the database structure to have a single database
This is a major change for the next release of Miniflux.

- There is now only one database that can supports multiple users
- There is no automated schema migration for this release
- A migration procedure is available in the ChangeLog file
2016-12-26 09:51:38 -05:00

38 lines
740 B
PHP

<?php
function tne()
{
return call_user_func_array('\Miniflux\Translator\translate_no_escaping', func_get_args());
}
function t()
{
return call_user_func_array('\Miniflux\Translator\translate', func_get_args());
}
function c()
{
return call_user_func_array('\Miniflux\Translator\currency', func_get_args());
}
function n()
{
return call_user_func_array('\Miniflux\Translator\number', func_get_args());
}
function dt()
{
return call_user_func_array('\Miniflux\Translator\datetime', func_get_args());
}
function get_cli_option($option, array $options)
{
$value = null;
if (! empty($options[$option]) && ctype_digit($options[$option])) {
$value = (int) $options[$option];
}
return $value;
}