Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4bac10bb42 |
@@ -23,6 +23,14 @@ declare(strict_types=1);
|
||||
// 'login_enabled' => true
|
||||
// ];
|
||||
|
||||
$__LOCAL_CONFIG = [
|
||||
'db_host' => 'test',
|
||||
'location' => 'test',
|
||||
'debug_flag' => true,
|
||||
'site_lang' => 'en_utf8',
|
||||
'login_enabled' => true
|
||||
];
|
||||
|
||||
// each host has a different db_host
|
||||
$SITE_CONFIG = [
|
||||
// development host
|
||||
@@ -42,6 +50,7 @@ $SITE_CONFIG = [
|
||||
'login_enabled' => true
|
||||
],
|
||||
// 'other.host.com' => $__LOCAL_CONFIG
|
||||
'soba-dev.tequila.jp' => $__LOCAL_CONFIG
|
||||
];
|
||||
|
||||
// __END__
|
||||
|
||||
@@ -24,6 +24,7 @@ foreach ($paths as $path) {
|
||||
if (file_exists($path . DS . 'convert') && is_file($path . DS . 'convert')) {
|
||||
// image magick convert location
|
||||
define('CONVERT', $path . DS . 'convert');
|
||||
break;
|
||||
}
|
||||
}
|
||||
unset($paths);
|
||||
|
||||
@@ -281,7 +281,7 @@ class Basic
|
||||
public function debugFor(string $type, string $flag): void
|
||||
{
|
||||
trigger_error('Method ' . __METHOD__ . ' is deprecated, use $basic->log->debugFor() or use \CoreLibs\Debug\Logging() class', E_USER_DEPRECATED);
|
||||
/** @phan-suppress-next-line PhanTypeMismatchArgumentReal @phpstan-ignore-next-line */
|
||||
/** @phan-suppress-next-line PhanTypeMismatchArgumentReal, PhanParamTooFew @phpstan-ignore-next-line */
|
||||
$this->log->debugFor(...[func_get_args()]);
|
||||
}
|
||||
|
||||
|
||||
@@ -369,7 +369,7 @@ class Logging
|
||||
*/
|
||||
public function debugFor(string $type, string $flag): void
|
||||
{
|
||||
/** @phan-suppress-next-line PhanTypeMismatchArgumentReal @phpstan-ignore-next-line */
|
||||
/** @phan-suppress-next-line PhanTypeMismatchArgumentReal, PhanParamTooFew @phpstan-ignore-next-line */
|
||||
$this->setLogLevel(...[func_get_args()]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user