Release 2.34 (#5465)
* fix timing issue in timesheet edit form with deactivated rounding * bump packages * only show update messages for newer plugin versions * replace deprecated method * remove internal from API * remove technical terms from translation * prevent calls to internal symfony methods * helper method to flag entry as modified * support meta-fields in weekly-hourse view * fix running timesheets were deleted in weekly-hourse
This commit is contained in:
@@ -483,25 +483,17 @@ final class SystemConfiguration
|
||||
return (bool) $this->find('theme.avatar_url');
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal will be made private soon after 2.18.0 - do not access this method directly, but through getThemeColors()
|
||||
*/
|
||||
public function getThemeColorChoices(): string
|
||||
{
|
||||
$config = $this->find('theme.color_choices');
|
||||
if (\is_string($config) && $config !== '') {
|
||||
return $config;
|
||||
}
|
||||
|
||||
return 'Silver|#c0c0c0';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
*/
|
||||
public function getThemeColors(): array
|
||||
{
|
||||
$config = explode(',', $this->getThemeColorChoices());
|
||||
$config = $this->find('theme.color_choices');
|
||||
if (!\is_string($config) || $config === '') {
|
||||
return ['Silver' => '#c0c0c0'];
|
||||
}
|
||||
|
||||
$config = explode(',', $config);
|
||||
|
||||
$colors = [];
|
||||
foreach ($config as $item) {
|
||||
|
||||
Reference in New Issue
Block a user