silverstripe/silverstripe-framework — pull request #2585 by ss23 (2013-10-23 05:32:36+00:00)
Title: FIX: Move stage choosing into a pre-request filter.

This ensures that the correct stage is selected, even if the request does not come through the model as controller system. This fixes an issue where custom controllers would always be on the "Stage" stage.