Skip to content

Commit 0d46bc5

Browse files
committed
Update commands.class.php
Color change fix
1 parent edf2e17 commit 0d46bc5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/commands/commands.class.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,12 +1039,10 @@ function processMenuItem($item_id, $set_value = false, $new_value = 0)
10391039
}
10401040
$data = processTitle($data, $this);
10411041

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

10491047
$item['LABEL'] = $data;
10501048

0 commit comments

Comments
 (0)