Upgrading the Less parser in OJS?

OJS 3.2.1.1 ships with an ancient version of the Less compiler (1.7.13 or so). Meanwhile there is version 3.0.0 which is much better (deals well with “calc”, for example).

Is there a clean way in which I could install a newer version of the wikimedia/less.php via, say, a plug-in, and OJS would then use it? I’m interested in a way that would survive the core upgrades.

1 Like

Hi @twardoch,

According to the GitHub, 2.0 and 3.0 version were released this year, thus I wouldn’t use the world ancient here :slight_smile:

Yes, we are considering the update, take a look at this thread: PHP Notice when compiling LESS from a theme plugin · Issue #6008 · pkp/pkp-lib · GitHub

Composer dependencies: https://github.com/pkp/pkp-lib/blob/master/composer.json