Skip to content

Commit

Permalink
Update commands.class.php
Browse files Browse the repository at this point in the history
Color change fix
  • Loading branch information
sergejey committed Aug 8, 2022
1 parent edf2e17 commit 0d46bc5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/commands/commands.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1039,12 +1039,10 @@ function processMenuItem($item_id, $set_value = false, $new_value = 0)
}
$data = processTitle($data, $this);

/*
if (preg_match('/#[\w\d]{6}/is', $data, $m)) {
if (preg_match('/#[\w\d]{6}$/is', $data, $m)) {
$color=$m[0];
$data=trim(str_replace($m[0], '<style>#item'.$item['ID'].' .ui-btn-active {background-color:'.$color.';border-color:'.$color.'}</style>', $data));
}
*/

$item['LABEL'] = $data;

Expand Down

0 comments on commit 0d46bc5

Please sign in to comment.