Each style has field "version" in style.cfg
Prosilver and subsilver2 use it to display phpBB version, customized styles use it to display style version that is often different from phpBB version.
To make styles more compatible with extensions, they should use the same metadata format: composer.json.
Suggestion
Original suggestion:
New suggestion: Use composer.json's require option to list a particular phpbb version that is required for the style to work. Use a custom composer package type (phpbb3-style since we use phpbb3-extension) for styles.I suggest to split it into 2 fields:
- style_version
- phpbb_version
Advantages
If phpBB version is known, it makes it easier to track compatibility, allowing to warn user that style is outdated when he tries to install it and show list of outdated styles to user.
Patch for change to composer.json
http://tracker.phpbb.com/browse/PHPBB3-10824
(Merged) Patch for simple change to .cfg file
Ticket: http://tracker.phpbb.com/browse/PHPBB3-10762
Patch: https://github.com/phpbb/phpbb3/pull/706