mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix minor unit test bugs
This commit is contained in:
parent
33631435b9
commit
b3ffd525d4
|
|
@ -149,7 +149,7 @@ class L11nManager
|
|||
{
|
||||
if (!isset($module) && isset($this->language[$language])) {
|
||||
return $this->language[$language];
|
||||
} elseif (isset($this->language[$language])) {
|
||||
} elseif (isset($this->language[$language]) && isset($this->language[$language][$module])) {
|
||||
return $this->language[$language][$module];
|
||||
} else {
|
||||
return [];
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ class FileLogger implements LoggerInterface
|
|||
* @since 1.0.0
|
||||
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||
*/
|
||||
public static function getInstance(string $path = '', bool $verbose = true) : FileLogger
|
||||
public static function getInstance(string $path = '', bool $verbose = false) : FileLogger
|
||||
{
|
||||
if (self::$instance === null) {
|
||||
self::$instance = new self($path, $verbose);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user