Skip to content

Commit

Permalink
Define always available entry point as cli entry script
Browse files Browse the repository at this point in the history
Do not rely on existence of cli_dispatch.phpsh as this
file might not exist if helhum/composer-setup is installed.
  • Loading branch information
helhum committed Jun 26, 2018
1 parent f190a3a commit d4e0660
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Scripts/typo3cms.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@
}

define('PATH_site', \TYPO3\CMS\Core\Utility\GeneralUtility::fixWindowsFilePath(getenv('TYPO3_PATH_ROOT')) . '/');
if (file_exists(PATH_site . 'typo3/sysext/core/bin/typo3')) {
define('PATH_thisScript', PATH_site . 'typo3/sysext/core/bin/typo3');
} else {
// @deprecated will be removed once 7.6 support is removed
define('PATH_thisScript', PATH_site . 'typo3/cli_dispatch.phpsh');
}
define('PATH_thisScript', PATH_site . 'typo3/index.php');

$log('PATH_site: ' . PATH_site, true);
$log('PATH_thisScript: ' . PATH_thisScript, true);
Expand Down

0 comments on commit d4e0660

Please sign in to comment.