[+BUGFIX] Extbase: Environment variables (context) are now recognized with FCGI ...
authorJochen Rau <j.rau@web.de>
Wed, 31 Mar 2010 10:28:38 +0000 (10:28 +0000)
committerJochen Rau <j.rau@web.de>
Wed, 31 Mar 2010 10:28:38 +0000 (10:28 +0000)
typo3/sysext/extbase/Classes/Dispatcher.php

index bb33020..e7a6552 100644 (file)
@@ -105,6 +105,9 @@ class Tx_Extbase_Dispatcher {
                }
                
                $context = getenv('EXTBASE_CONTEXT');
+               if ($context == '') {
+                       $context = getenv('REDIRECT_EXTBASE_CONTEXT');
+               }
                $context = (strlen($context) === 0) ? 'Production' : $context;
                $this->initializeConfigurationManagerAndFrameworkConfiguration($configuration, $context);