Fixed Using @import causes LESS parse errors

Affected version
2.0 Beta 4


Well-known member
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:

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.
Last edited: