javascript and api to stop and display active records (#772)
This commit is contained in:
@@ -59,7 +59,7 @@ trait StringAccessibleConfigTrait
|
||||
$temp = array_slice($temp, 1);
|
||||
}
|
||||
foreach ($temp as $key2) {
|
||||
if (!isset($array[$key2])) {
|
||||
if (!array_key_exists($key2, $array)) {
|
||||
// unknown values will silently be skipped
|
||||
continue 2;
|
||||
}
|
||||
@@ -110,7 +110,7 @@ trait StringAccessibleConfigTrait
|
||||
$keys = explode('.', $key);
|
||||
$search = array_shift($keys);
|
||||
|
||||
if (!isset($config[$search])) {
|
||||
if (!array_key_exists($search, $config)) {
|
||||
throw new \InvalidArgumentException('Unknown config: ' . $key);
|
||||
}
|
||||
|
||||
|
||||
25
src/Configuration/ThemeConfiguration.php
Normal file
25
src/Configuration/ThemeConfiguration.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Kimai time-tracking app.
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace App\Configuration;
|
||||
|
||||
class ThemeConfiguration implements SystemBundleConfiguration
|
||||
{
|
||||
use StringAccessibleConfigTrait;
|
||||
|
||||
public function getPrefix(): string
|
||||
{
|
||||
return 'theme';
|
||||
}
|
||||
|
||||
public function getSelectPicker(): string
|
||||
{
|
||||
return (string) $this->find('select_type');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user