Stop using DS for DIRECTORY_SEPARATOR replacement

There is no need for a short entry, use the long one.
The DS is still defined for backwards compatible use
This commit is contained in:
Clemens Schwaighofer
2022-04-06 09:21:15 +09:00
parent aad2e9b11b
commit e5309b5dbc
6 changed files with 43 additions and 45 deletions

View File

@@ -21,9 +21,9 @@ $paths = [
];
// find convert
foreach ($paths as $path) {
if (file_exists($path . DS . 'convert') && is_file($path . DS . 'convert')) {
if (file_exists($path . DIRECTORY_SEPARATOR . 'convert') && is_file($path . DIRECTORY_SEPARATOR . 'convert')) {
// image magick convert location
define('CONVERT', $path . DS . 'convert');
define('CONVERT', $path . DIRECTORY_SEPARATOR . 'convert');
break;
}
}