From 75d8bae2c5f8c9200bc496a6e1bf91af8a2ad13d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 3 Jul 2017 14:46:34 -0700 Subject: [PATCH] web: add optional class param to row_heading() --- html/inc/util.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/html/inc/util.inc b/html/inc/util.inc index 9f2723feae..b2c3d5123b 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -496,9 +496,10 @@ function row_heading_array($x, $attrs=null, $class='bg-primary') { echo "\n"; } -function row_heading($x) { - echo ''.$x.' - '; +function row_heading($x, $class='bg-primary') { + echo sprintf('%s + ', $class, $x + ); } function random_string() {