Fixed Using @import causes LESS parse errors

Kirby

Well-known member
Affected version
2.0 Beta 4
This is somewhat between a bug report and a feature request, though as it does generate errors I decided to file it as a bug report ;)

If @import is used for LESS templates containing XF style properties like @xf-publicLogoUrl, the following error is being logged:

Code:
Less_Exception_Compiler: variable @xf-publicLogoUrl is undefined in file <path>/internal_data/temp/xftJ0FIR

This happens because \XF\CssRenderer::handleLessImport does not prepare the included template for LESS parsing.

https://xenforo.com/community/threa...style-development-for-xf2.134907/post-1178902
 
Last edited:
Back
Top Bottom