[no-ticket] added constant for APPLICATION_PATH to fix the templates on production