Issue #1962358 by grom358: Replaced calls to variable_get and token_replace