fixed access to static variables to be compatible with SilverStripe 3.1