Commit e25bc4fd authored by Dries's avatar Dries

- Fixed glitch in table_cell().  Spotted by Michael.
parent 457e5a1b
...@@ -211,7 +211,7 @@ function table_cell($cell, $header = 0) { ...@@ -211,7 +211,7 @@ function table_cell($cell, $header = 0) {
$data = $cell; $data = $cell;
} }
if (isset($header)) { if ($header) {
$output = "<th$attributes>$data</th>"; $output = "<th$attributes>$data</th>";
} }
else { else {
...@@ -483,12 +483,12 @@ function rewrite_old_urls($text) { ...@@ -483,12 +483,12 @@ function rewrite_old_urls($text) {
// rewrite 'node.php?id=<number>[&cid=<number>]' style URLs: // rewrite 'node.php?id=<number>[&cid=<number>]' style URLs:
$text = eregi_replace("(node)\.php\?id=([[:digit:]]+)(&cid=)?([[:digit:]]*)", "?q=\\1/view/\\2/\\4", $text); $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:]]+))(&?[[: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:]]+))(&?[[:alpha:]]+=([[:alnum:]]+))", "?q=\\2/\\4" , $text);
$text = ereg_replace("module\.php\?(&?[[:alpha:]]+=([[:alnum:]]+))", "?q=\\2" , $text); $text = ereg_replace("module\.php\?(&?[[:alpha:]]+=([[:alnum:]]+))", "?q=\\2" , $text);
return $text; return $text;
} }
...@@ -882,7 +882,7 @@ function page_footer() { ...@@ -882,7 +882,7 @@ function page_footer() {
include_once "includes/$config.php"; include_once "includes/$config.php";
include_once "includes/database.inc"; include_once "includes/database.inc";
include_once "includes/xmlrpc.inc"; //include_once "includes/xmlrpc.inc";
include_once "includes/module.inc"; include_once "includes/module.inc";
include_once "includes/theme.inc"; include_once "includes/theme.inc";
include_once "includes/pager.inc"; include_once "includes/pager.inc";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment