diff --git a/composer.json b/composer.json index da521855..ebbe92fa 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ }, "require": { "gettext/gettext": "^4.4", - "twig/twig": "^2.4", + "twig/twig": "^2.9", "twig/extensions": "^1.5", "geoip/geoip": "^1.16", "mrclay/minify": "^3.0", diff --git a/composer.lock b/composer.lock index 518078a8..a661a191 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "024e398738753e998a1e2b62235843a3", + "content-hash": "cd1eb38aad1ab9b78eddde4761daa8b6", "packages": [ { "name": "awsumchan/ip", diff --git a/inc/config.php b/inc/config.php index 69c22186..8f902c44 100644 --- a/inc/config.php +++ b/inc/config.php @@ -875,7 +875,7 @@ // Timezone to use for displaying dates/tiems. $config['timezone'] = 'America/Los_Angeles'; // The format string passed to strftime() for displaying dates. - // http://www.php.net/manual/en/function.strftime.php + // https://www.php.net/manual/en/function.strftime.php $config['post_date'] = '%m/%d/%y (%a) %H:%M:%S'; // Same as above, but used for "you are banned' pages. $config['ban_date'] = '%A %e %B, %Y'; diff --git a/inc/template.php b/inc/template.php index a46660f0..047888e3 100644 --- a/inc/template.php +++ b/inc/template.php @@ -1,7 +1,7 @@ $length) { if ($preserve) { diff --git a/templates/banned.html b/templates/banned.html index 0444d1f1..e507e676 100644 --- a/templates/banned.html +++ b/templates/banned.html @@ -1,4 +1,4 @@ -{% filter remove_whitespace %} +{% apply spaceless %} {# Automatically removes unnecessary whitespace #}
{% trans %}Your ban was filed on{% endtrans %} - {{ ban.created|date(config.ban_date) }} + {{ ban.created|strftime(config.ban_date) }} {% if config.show_modname %} {% if ban.username %} {% trans %}by{% endtrans %} {{ ban.username }} @@ -44,7 +44,7 @@ {% elseif ban.expires %} {% trans %}expires{% endtrans %} {{ ban.expires|until }} {% trans %}from now, which is on{% endtrans %} - {{ ban.expires|date(config.ban_date) }} + {{ ban.expires|strftime(config.ban_date) }} {% endverbatim %}