[BUGFIX] Initialize autoloader earlier in the bootstrap
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 11 Jul 2011 22:59:39 +0000 (00:59 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Tue, 12 Jul 2011 11:28:43 +0000 (13:28 +0200)
Because of the refactoring of t3lib_div the autoloader is needed
earlier in the bootstrap.
Move it right after the inclusion of localconf.php

Resolves: #28099
Relates: #28026
Releases: 4.6

Change-Id: Ie818c9b791a421c9f85705a75bf50be4068fbdd7
Reviewed-on: http://review.typo3.org/3265
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
t3lib/config_default.php

index 489a8cd..9540a7d 100644 (file)
@@ -684,6 +684,13 @@ if (!@is_file(PATH_typo3conf . 'localconf.php')) {
 require(PATH_typo3conf.'localconf.php');
 
 
+// *********************
+// Autoloader
+// *********************
+require_once(PATH_t3lib . 'class.t3lib_autoloader.php');
+t3lib_autoloader::registerAutoloader();
+
+
 /**
  * Checking for UTF-8 in the settings since TYPO3 4.5
  *
@@ -915,13 +922,6 @@ define('TYPO3_REQUESTTYPE',
 );
 
 
-// *********************
-// Autoloader
-// *********************
-require_once(PATH_t3lib . 'class.t3lib_autoloader.php');
-t3lib_autoloader::registerAutoloader();
-
-
 
 // Load extensions:
 if (TYPO3_MODE=='FE' && is_object($TT)) $TT->push('Loading localconf.php extensions','');