Updated for Redmine 2.4.x and Redmine 2.5.x