[BUGFIX] Remove old require_once in index_ts.php 20/19220/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Sat, 23 Mar 2013 14:24:18 +0000 (15:24 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 23 Mar 2013 14:33:51 +0000 (15:33 +0100)
* TimeTracker can be instantiated directly, using autoloader
* Check for loaded ext:cms is obsolete, it is a required extension

Change-Id: Ifd6ab21c7ec3aa1c25c5ef0bf4da8f7a76478a2b
Fixes: #46599
Releases: 6.1
Reviewed-on: https://review.typo3.org/19220
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/index_ts.php

index dac3909..c5ca303 100644 (file)
@@ -43,17 +43,13 @@ define('TYPO3_MODE', 'FE');
        ->loadTypo3LoadedExtAndExtLocalconf(TRUE)
        ->applyAdditionalConfigurationSettings();
 
-if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('cms')) {
-       die('<strong>Error:</strong> The main frontend extension "cms" was not loaded. Enable it in the extension manager in the backend.');
-}
 // Timetracking started
 if ($_COOKIE[\TYPO3\CMS\Core\Authentication\BackendUserAuthentication::getCookieName()]) {
-       require_once PATH_t3lib . 'class.t3lib_timetrack.php';
        $TT = new \TYPO3\CMS\Core\TimeTracker\TimeTracker();
 } else {
-       require_once PATH_t3lib . 'class.t3lib_timetracknull.php';
-       $TT = new t3lib_timeTrackNull();
+       $TT = new \TYPO3\CMS\Core\TimeTracker\NullTimeTracker();
 }
+
 $TT->start();
 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->initializeTypo3DbGlobal(FALSE);
 // Hook to preprocess the current request:
@@ -241,4 +237,4 @@ if (TYPO3_DLOG) {
        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('END of FRONTEND session', 'cms', 0, array('_FLUSH' => TRUE));
 }
 \TYPO3\CMS\Core\Core\Bootstrap::getInstance()->shutdown();
-?>
+?>
\ No newline at end of file