diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-15 05:56:50 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-15 05:56:50 +0000 |
commit | e25bc4fda3616eeecd9cc251b3f197a5b5099778 (patch) | |
tree | d8fc34439b574f988fe5e4db9c1bd4fd46e8811c | |
parent | 457e5a1b23d232f8099db209e1faddb2ace15a93 (diff) | |
download | brdo-e25bc4fda3616eeecd9cc251b3f197a5b5099778.tar.gz brdo-e25bc4fda3616eeecd9cc251b3f197a5b5099778.tar.bz2 |
- Fixed glitch in table_cell(). Spotted by Michael.
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 5 insertions, 5 deletions
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 = "<th$attributes>$data</th>"; } else { @@ -483,12 +483,12 @@ function rewrite_old_urls($text) { // rewrite 'node.php?id=<number>[&cid=<number>]' style URLs: $text = eregi_replace("(node)\.php\?id=([[:digit:]]+)(&cid=)?([[:digit:]]*)", "?q=\\1/view/\\2/\\4", $text); - - // rewrite 'module.php?mod=<name>{&<op>=<value>}' style URLs: + + // rewrite 'module.php?mod=<name>{&<op>=<value>}' 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"; |