Merge remote-tracking branch 'origin/1.6' into 1.6

This commit is contained in:
Matias Griese
2019-03-01 14:48:01 +02:00
2 changed files with 3 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ form:
options:
space: Maximum Backup Space
number: Maximum Number of Backups
time: maximum Rention Time
time: maximum Retention Time
validate:
required: true
@@ -55,7 +55,7 @@ form:
purge.max_backups_time:
type: number
label: Maximum Rention Time
label: Maximum Retention Time
append: in Days
size: x-small
default: 365

View File

@@ -720,19 +720,12 @@ class TwigExtension extends \Twig_Extension implements \Twig_Extension_GlobalsIn
*/
public function translate(\Twig_Environment $twig)
{
static $admin_call;
// One time check and assignment of admin provided tu filter
if ($admin_call == null) {
$admin_call = isset($this->grav['admin']);
}
// shift off the environment
$args = func_get_args();
array_shift($args);
// If admin and tu filter provided, use it
if ($admin_call) {
if (isset($this->grav['admin'])) {
$numargs = count($args);
$lang = null;