contao/import — Issue #3316: Global css variables first match
Author: Ruudt
Created: 2011-11-29 21:20:13+00:00
State: open
Labels: backend, Defect

When I define css global variables $gold = eeb422 and $goldt = ee9a00 I have to make sure $goldt is ordered above $gold or else all instances of $goldt become "eeb422t". Would it not be better to disregard the order and reverse sort the array on variable name before replacing? That way $goldt will always be replaced before $gold.

The sort order would only be important if the value could be a previously defined variable: $width = $padd + $something...

--- _Originally created on July 30th, 2011, at 12:56pm (ID 3316)_