From 60cfbac4d51c244760790a9f18ea3feb8eee15c3 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 17 Jul 2015 09:03:10 +1000 Subject: [PATCH] php - blocks: make the ~ colour match the Diff% colour --- pool/page_blocks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index c294ba4c..6582ee96 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -204,7 +204,7 @@ function doblocks($data, $user) { $pct = 100.0 * $diffratio; list($fg, $bg) = pctcolour($pct); - $bpct = "".number_format($pct, 2).'%'; + $bpct = "$approx".number_format($pct, 2).'%'; $bg = " bgcolor=$bg"; $blktot += $diffacc; if ($stat != 'Orphan') @@ -230,7 +230,7 @@ function doblocks($data, $user) $pg .= "".utcd($ans['firstcreatedate:'.$i]).''; $pg .= "$stat"; $pg .= "$stara$approx$acc"; - $pg .= "$approx$bpct"; + $pg .= "$bpct"; $pg .= "$cdfdsp"; $pg .= "\n"; }