Compatibility fixes for Blaze templating engine
Swap out deprecated function call