Skip to content

Commit

Permalink
GH-126 Use getMessageTypeColor() in messages list view
Browse files Browse the repository at this point in the history
  • Loading branch information
mdziekon committed Nov 10, 2020
1 parent 1f69416 commit 384a3d5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@
$Now = time();

$MessageType = array(100, 0, 1, 2, 3, 4, 5, 15, 50, 70, 80);
$TitleColor = array
(
0 => '#FFFF00', 1 => '#FF6699', 2 => '#FF3300', 3 => '#FF9900', 4 => '#9540BF', 5 => '#009933',
15 => '#6661FF', 80 => 'white', 50 => 'skyblue', 70 => '#75F121', 100 => '#ABABAB'
);

$_MaxLength_Subject = 100;
$_MaxLength_Text = 5000;
Expand Down Expand Up @@ -366,7 +361,7 @@

$parse['ThisPage'] = $_ThisPage;
$parse['MessCategory'] = $_ThisCategory;
$parse['MessCategoryColor'] = $TitleColor[$_ThisCategory];
$parse['MessCategoryColor'] = Messages\Utils\getMessageTypeColor($_ThisCategory);
$parse['Pagination'] = $Pagination;
$page = '';

Expand Down

0 comments on commit 384a3d5

Please sign in to comment.