Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Classes/Utility/Shell.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static function findCmd($cmd) {
'/usr/local/bin/',
'/bin/',
'/Applications/xampp/xamppfiles/bin/'
);
);
$binFolders = array_merge($binFolders, t3lib_div::trimExplode(',', $GLOBALS['TYPO3_CONF_VARS']['SYS']['binPath']));

$extensions = array('');
Expand All @@ -116,11 +116,14 @@ static function findCmd($cmd) {
}

foreach ($extensions as $extension) {
$cwd = false;
reset($binFolders);
foreach ($binFolders as $cwd) {
$which = t3lib_div::makeInstance('Tx_Contentstage_Utility_Shell');
$which->exec('which ' . $cwd . $cmd . $extension, '');
if (TYPO3_OS == 'WIN') {
$which->exec('WHERE ' . (($cwd === '') ? $cwd : $cwd . ':') . $cmd . $extension, '');
} else {
$which->exec('which ' . $cwd . $cmd . $extension, '');
}
$stdout = $which->getStdout();
if (strlen($stdout) > 0) {
return trim($stdout);
Expand Down
2 changes: 1 addition & 1 deletion Classes/Utility/Tca.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ public function isVisibleField($table, $field) {
return false;
}

return !isset($this->ignoreFields[$_table][$field]) || empty($this->ignoreFields[$_table][$field]);
return !isset($this->ignoreFields[$table][$field]) || empty($this->ignoreFields[$table][$field]);
}

/**
Expand Down