From e25bc4fda3616eeecd9cc251b3f197a5b5099778 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 15 Jan 2003 05:56:50 +0000 Subject: - Fixed glitch in table_cell(). Spotted by Michael. --- includes/common.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index d223371c8..7c04cf2b9 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -211,7 +211,7 @@ function table_cell($cell, $header = 0) { $data = $cell; } - if (isset($header)) { + if ($header) { $output = "$data"; } else { @@ -483,12 +483,12 @@ function rewrite_old_urls($text) { // rewrite 'node.php?id=[&cid=]' style URLs: $text = eregi_replace("(node)\.php\?id=([[:digit:]]+)(&cid=)?([[:digit:]]*)", "?q=\\1/view/\\2/\\4", $text); - - // rewrite 'module.php?mod={&=}' style URLs: + + // rewrite 'module.php?mod={&=}' style URLs: $text = ereg_replace("module\.php\?(&?[[:alpha:]]+=([[:alnum:]]+))(&?[[:alpha:]]+=([[:alnum:]]+))(&?[[:alpha:]]+=([[:alnum:]]+))", "?q=\\2/\\4/\\6" , $text); $text = ereg_replace("module\.php\?(&?[[:alpha:]]+=([[:alnum:]]+))(&?[[:alpha:]]+=([[:alnum:]]+))", "?q=\\2/\\4" , $text); $text = ereg_replace("module\.php\?(&?[[:alpha:]]+=([[:alnum:]]+))", "?q=\\2" , $text); - + return $text; } @@ -882,7 +882,7 @@ $config = conf_init(); include_once "includes/$config.php"; include_once "includes/database.inc"; -include_once "includes/xmlrpc.inc"; +//include_once "includes/xmlrpc.inc"; include_once "includes/module.inc"; include_once "includes/theme.inc"; include_once "includes/pager.inc"; -- cgit v1.2.3