Update SmartyManager.php