[3.1] better smarty pathvariables