[TASK] Remove typo3RelPath from TYPO3_LOADED_EXT 14/49114/3
authorBenni Mack <benni@typo3.org>
Tue, 19 Jul 2016 20:03:49 +0000 (22:03 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Wed, 20 Jul 2016 07:16:31 +0000 (09:16 +0200)
The $TYPO3_LOADED_EXT compatibility array contains
the property "typo3RelPath" which contains the path
relative to the typo3/ main directory.

As this path is not needed anymore, the property can be removed
from the global array.

Resolves: #77158
Releases: master
Change-Id: Ibc8341606f46cdd700fd309b03796358ffcfe75d
Reviewed-on: https://review.typo3.org/49114
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/core/Classes/Compatibility/LoadedExtensionArrayElement.php

index 3ebd4df..fded139 100644 (file)
@@ -71,31 +71,25 @@ class LoadedExtensionArrayElement implements \IteratorAggregate, \ArrayAccess, \
         if (substr($absolutePackagePath, 0, $pathSiteLength) === $pathSite) {
             $relativePackagePathToPathSite = substr($absolutePackagePath, $pathSiteLength);
             $relativePackagePathToPathSiteSegments = explode('/', $relativePackagePathToPathSite);
-            $relativePackagePathToPathTypo3 = null;
             $packageType = null;
             // Determine if extension is installed locally, globally or system (in this order)
             switch (implode('/', array_slice($relativePackagePathToPathSiteSegments, 0, 2))) {
                 case 'typo3conf/ext':
                     $packageType = 'L';
-                    $relativePackagePathToPathTypo3 = '../typo3conf/ext/' . implode('/', array_slice($relativePackagePathToPathSiteSegments, 2));
                     break;
                 case TYPO3_mainDir . 'ext':
                     $packageType = 'G';
-                    $relativePackagePathToPathTypo3 = 'ext/' . implode('/', array_slice($relativePackagePathToPathSiteSegments, 2));
                     break;
                 case TYPO3_mainDir . 'sysext':
                     $packageType = 'S';
-                    $relativePackagePathToPathTypo3 = 'sysext/' . implode('/', array_slice($relativePackagePathToPathSiteSegments, 2));
                     break;
                 case 'typo3temp/var/tests/test_ext':
                     $packageType = 'T';
-                    $relativePackagePathToPathTypo3 = '../typo3temp/var/tests/test_ext/' . implode('/', array_slice($relativePackagePathToPathSiteSegments, 2));
                     break;
             }
-            if ($packageType !== null && $relativePackagePathToPathSite !== null && $relativePackagePathToPathTypo3 !== null) {
+            if ($packageType !== null && $relativePackagePathToPathSite !== null) {
                 $this->extensionInformation['type'] = $packageType;
                 $this->extensionInformation['siteRelPath'] = $relativePackagePathToPathSite;
-                $this->extensionInformation['typo3RelPath'] = $relativePackagePathToPathTypo3;
             }
         }
     }