From 0391864cbf0683727f9227ffc381db2ac31fd6b5 Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 12 Jun 2001 17:50:40 +0000 Subject: [PATCH] * Added color theme support for the reply colors git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1410 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/functions/strings.php b/functions/strings.php index d7f7db61..c0984ebc 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -170,6 +170,7 @@ function translateText(&$body, $wrap_at, $charset) { global $where, $what; // from searching + global $color; // color theme include '../functions/url_parser.php'; @@ -204,10 +205,15 @@ } } - if ($Quotes > 1) - $line = ''.$line.''; - elseif ($Quotes) - $line = ''.$line.''; + if ($Quotes > 1) { + if (! isset($color[13])) + $color[13] = '#FF0000'; + $line = '' . $line . ''; + } elseif ($Quotes) { + if (! isset($color[14])) + $color[14] = '#800000'; + $line = '' . $line . ''; + } $body_ary[$i] = $line; } -- 2.25.1