From 0431f0700f204ab9941a4791c887024aa4f83ceb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 20 Aug 2003 19:19:13 +0000 Subject: - Committed Jeremy's session patch: this brings us one step closer to having session for anonymous users. --- includes/common.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index e0b2f3283..60a383603 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -248,6 +248,9 @@ function table($header, $rows) { if (is_array($header)) { $output .= " "; foreach ($header as $cell) { + if (is_array($cell) && $cell["field"]) { + $cell = tablesort($cell, $header); + } $output .= table_cell($cell, 1); } $output .= " \n"; @@ -1096,6 +1099,7 @@ include_once "includes/theme.inc"; include_once "includes/pager.inc"; include_once "includes/menu.inc"; include_once "includes/xmlrpc.inc"; +include_once "includes/tablesort.inc"; // initialize configuration variables, using values from conf.php if available: $conf = variable_init(isset($conf) ? $conf : array()); -- cgit v1.2.3