[TASK] Replace nested dirname calls with using the levels parameter 48/57248/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 17 Jun 2018 14:57:09 +0000 (16:57 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 22 Jun 2018 19:40:55 +0000 (21:40 +0200)
Resolves: #85292
Releases: master
Change-Id: I3abfce7fb91b007769c63aaff4da6c1b672ef947
Reviewed-on: https://review.typo3.org/57248
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/backend/Classes/Composer/InstallerScripts.php
typo3/sysext/frontend/Classes/Composer/InstallerScripts.php
typo3/sysext/install/Classes/Composer/InstallerScripts.php

index 0284594..387de6e 100644 (file)
@@ -33,7 +33,7 @@ class InstallerScripts implements InstallerScriptsRegistration
     {
         $scriptDispatcher->addInstallerScript(
             new EntryPoint(
-                dirname(dirname(__DIR__)) . '/Resources/Private/Php/backend.php',
+                dirname(__DIR__, 2) . '/Resources/Private/Php/backend.php',
                 'typo3/index.php'
             )
         );
index a8418dd..4274d45 100644 (file)
@@ -33,7 +33,7 @@ class InstallerScripts implements InstallerScriptsRegistration
     {
         $scriptDispatcher->addInstallerScript(
             new EntryPoint(
-                dirname(dirname(__DIR__)) . '/Resources/Private/Php/frontend.php',
+                dirname(__DIR__, 2) . '/Resources/Private/Php/frontend.php',
                 'index.php'
             )
         );
index 7d7545c..01ff981 100644 (file)
@@ -33,7 +33,7 @@ class InstallerScripts implements InstallerScriptsRegistration
     {
         $scriptDispatcher->addInstallerScript(
             new EntryPoint(
-                dirname(dirname(__DIR__)) . '/Resources/Private/Php/install.php',
+                dirname(__DIR__, 2) . '/Resources/Private/Php/install.php',
                 'typo3/install.php'
             )
         );