octobercms/october — pull request #333 by radmen (2014-06-20 09:38:29+00:00)
Title: Fix in detecting production env

By default `detectEnvironment()` returns `production` when environment is not detected.

However when `Closure` is passed the value returned by it will be set as environment.
In this case returning `null` means that Laravel won't recognize any environment. In such situation any `production` configs won't be loaded.