next to the current lang/encoding add locale that is a combination of both. Also add a locale folder constant the default LANG variables (DEFAULT_LANG, SITE_LANG) change from en_utf8 to en_US new DEFAULT_LOCALE with en_US.UTF-8
36 lines
832 B
PHP
36 lines
832 B
PHP
<?php // phpcs:ignore PSR1.Files.SideEffects
|
|
|
|
/********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* CREATED: 2019/10/28
|
|
* SHORT DESCRIPTION:
|
|
* other global constant variables
|
|
* HISTORY:
|
|
*********************************************************************/
|
|
|
|
declare(strict_types=1);
|
|
|
|
// define('SOME_ID', <SOME VALUE>);
|
|
|
|
/************* CONVERT *******************/
|
|
// this only needed if the external thumbnail create is used
|
|
$paths = [
|
|
'/bin',
|
|
'/usr/bin',
|
|
'/usr/local/bin',
|
|
];
|
|
// find convert
|
|
foreach ($paths as $path) {
|
|
if (
|
|
file_exists($path . DIRECTORY_SEPARATOR . 'convert') &&
|
|
is_file($path . DIRECTORY_SEPARATOR . 'convert')
|
|
) {
|
|
// image magick convert location
|
|
define('CONVERT', $path . DIRECTORY_SEPARATOR . 'convert');
|
|
break;
|
|
}
|
|
}
|
|
unset($paths);
|
|
|
|
// __END__
|