Repository navigation
4.1.1.28
Changes
- Twig: added include_jska('path/file.js', ...) and include_csska('path/file.css', ...) functions. They print <script>/ tags for the given urls (as in src/href) with ?v=.
- Format: convertToByte() parses fractions ('1.5G', '1,5G'), values without a suffix ('512' gave 51), '-1' (unlimited) and suffixes like '10 Mb', '10 KB', '100 bytes', 'T'.
- Format: size unit labels are taken from the language file (ka_format, en-gb and ru-ru for admin and catalog); formatPassedTime() in the catalog printed 'text_hours' etc. Fixed.
- Format: no fatal error when the language is not found (a line is written to the log), the language list is read once per request. Added static parseBytes() and formatBytes() helpers.
- Top messages of the Ka Extensions pages are shown with the right type: success messages green ('S'), errors red ('E').
Pull requests
- Format: correct size parsing, translatable units, no fatal error without a language by @gosha-bot in #12
- Twig: include_jska() and include_csska() by @gosha-bot in #13
- Release 4.1.1.28 by @gosha-bot in #14
Full Changelog: v4.1.1.27...v4.1.1.28