[TASK] thumbs.php ease require/include path 28/18928/2
authorFelix Kopp <felix-source@phorax.com>
Thu, 14 Mar 2013 22:49:47 +0000 (23:49 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 22 Mar 2013 17:31:34 +0000 (18:31 +0100)
Currently typo3/thumbs.php requires t3lib/thumbs.php and
t3lib/thumbs.php requires EXT:backend/Classes/View/ThumbnailView.php.

Include ThumbnailView directly in typo3/thumbs.php.
But keeps deprecation in place and other files untouched.

Change-Id: I1c464e683cb08f674ac47cb87f296b185fd35db5
Fixes: #46308
Releases: 6.1
Reviewed-on: https://review.typo3.org/18928
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/thumbs.php

index d69d06a..487d1ce 100644 (file)
@@ -33,5 +33,9 @@
 error_reporting(E_ALL & ~(E_STRICT | E_NOTICE | E_DEPRECATED));
 require 'init.php';
 // include thumbs script
-require PATH_t3lib . 'thumbs.php';
-?>
\ No newline at end of file
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('backend') . 'Classes/View/ThumbnailView.php';
+// Make instance:
+$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\View\\ThumbnailView');
+$SOBE->init();
+$SOBE->main();
+?>