diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-20 19:19:13 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-20 19:19:13 +0000 |
commit | 0431f0700f204ab9941a4791c887024aa4f83ceb (patch) | |
tree | 9d2f013bdc3a619164820adcd398b0f344d3df18 /includes | |
parent | b79b831152f79b412ce35c91193332c66ba94580 (diff) | |
download | brdo-0431f0700f204ab9941a4791c887024aa4f83ceb.tar.gz brdo-0431f0700f204ab9941a4791c887024aa4f83ceb.tar.bz2 |
- Committed Jeremy's session patch: this brings us one step closer to having
session for anonymous users.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 4 |
1 files changed, 4 insertions, 0 deletions
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 .= " <tr>"; foreach ($header as $cell) { + if (is_array($cell) && $cell["field"]) { + $cell = tablesort($cell, $header); + } $output .= table_cell($cell, 1); } $output .= " </tr>\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()); |