[BUGFIX] Exception class not found in ApplicationContext 51/25051/3
authorStefan Froemken <froemken@gmail.com>
Tue, 29 Oct 2013 15:13:02 +0000 (16:13 +0100)
committerSteffen Müller <typo3@t3node.com>
Wed, 30 Oct 2013 17:07:26 +0000 (18:07 +0100)
If a wrong application context is set, an exception
should be thrown, however the exception class is
not found.

Resolves: #53162
Releases: 6.2
Change-Id: Ia863d162a2a983a46341a6f2b124702080a94542
Reviewed-on: https://review.typo3.org/25051
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Steffen Müller
Tested-by: Steffen Müller
typo3/sysext/core/Classes/Core/Bootstrap.php

index b93e540..fe81bca 100644 (file)
@@ -101,6 +101,7 @@ class Bootstrap {
         */
        static public function getInstance() {
                if (is_null(static::$instance)) {
+                       require_once(__DIR__ . '/../Exception.php');
                        require_once(__DIR__ . '/ApplicationContext.php');
                        $applicationContext = trim(getenv('TYPO3_CONTEXT'), '"\' ') ? : 'Production';
                        self::$instance = new static($applicationContext);