[BUGFIX] Presets cause fatal error during last installation step
[Packages/TYPO3.CMS.git] / index.php
index 8485560..eef54b2 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2012 Kasper Skårhøj (kasperYYYY@typo3.com)
+*  (c) 1999-2013 Kasper Skårhøj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -33,8 +33,9 @@
  * @author René Fritz <r.fritz@colorcube.de>
  */
 
-require 'typo3/sysext/core/Classes/Core/Bootstrap.php';
-\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->baseSetup('');
+require __DIR__ . '/typo3/sysext/core/Classes/Core/Bootstrap.php';
+\TYPO3\CMS\Core\Core\Bootstrap::getInstance()
+       ->baseSetup('')
+       ->redirectToInstallerIfEssentialConfigurationDoesNotExist();
 
 require(PATH_tslib . 'index_ts.php');
-?>
\ No newline at end of file