From 6e291bc6a5c8bcabc9c7c95fd79d0824835525d7 Mon Sep 17 00:00:00 2001 From: urs_hunkler Date: Thu, 22 Feb 2007 08:22:37 +0000 Subject: [PATCH] 'changed table headers style adding as proposed by Eloy - MDL-8419' --- lib/tablelib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/tablelib.php b/lib/tablelib.php index a37be7db16..46a3ab36ba 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -528,11 +528,13 @@ class flexible_table { } else { // took out nowrap for accessibility, might need replacement - /* if (!is_array($this->column_style[$column])) { - $usestyles = array('white-space:nowrap'); + if (!is_array($this->column_style[$column])) { + // $usestyles = array('white-space:nowrap'); + $usestyles = ''; } else { - $usestyles = $this->column_style[$column]+array('white-space'=>'nowrap'); - } */ + // $usestyles = $this->column_style[$column]+array('white-space'=>'nowrap'); + $usestyles = $this->column_style[$column]; + } echo 'make_styles_string($usestyles).' scope="col">'.$this->headers[$index].$icon_sort.'
'.$icon_hide.'
'; } -- 2.39.5