From de95001c9291d6f2e66374975b793f84dc155aca Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 31 Dec 2002 12:34:07 +0000 Subject: - Tidied up the use of check_output(). Might make rendering pages a bit snappier (performance improvement). --- modules/aggregator.module | 24 ++++++++++++------------ modules/aggregator/aggregator.module | 24 ++++++++++++------------ modules/block.module | 4 ++-- modules/block/block.module | 4 ++-- modules/book.module | 20 ++++++++++---------- modules/book/book.module | 20 ++++++++++---------- modules/comment.module | 12 ++++++------ modules/comment/comment.module | 12 ++++++------ modules/forum.module | 16 ++++++++-------- modules/forum/forum.module | 16 ++++++++-------- modules/import.module | 24 ++++++++++++------------ modules/locale.module | 8 ++++---- modules/locale/locale.module | 8 ++++---- modules/node.module | 6 +++--- modules/node/node.module | 6 +++--- modules/queue.module | 6 +++--- modules/search.module | 4 ++-- modules/search/search.module | 4 ++-- modules/statistics.module | 6 +++--- modules/statistics/statistics.module | 6 +++--- modules/taxonomy.module | 2 +- modules/taxonomy/taxonomy.module | 2 +- modules/tracker.module | 4 ++-- modules/tracker/tracker.module | 4 ++-- modules/user.module | 20 ++++++++++---------- modules/user/user.module | 20 ++++++++++---------- modules/watchdog.module | 12 ++++++------ modules/watchdog/watchdog.module | 12 ++++++------ 28 files changed, 153 insertions(+), 153 deletions(-) (limited to 'modules') diff --git a/modules/aggregator.module b/modules/aggregator.module index 5243ea6dc..a679780cb 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -67,7 +67,7 @@ function import_format_item($item, $feed = 0) { } // external link - $output .= "link) ."\" target=\"new\">". check_output($item->title) .""; + $output .= "link\" target=\"new\">$item->title"; return $output ."
"; } @@ -387,7 +387,7 @@ function import_view() { $header = array(t("title"), t("attributes"), t("items"), t("last update"), t("next update"), array("data" => t("operations"), "colspan" => 3)); unset($rows); while ($feed = db_fetch_object($result)) { - $rows[] = array(check_output($feed->title), check_output($feed->attributes), format_plural($feed->items, "item", "items"), ($feed->timestamp ? format_interval(time() - $feed->timestamp) ." ago" : "never"), ($feed->timestamp ? format_interval($feed->timestamp + $feed->refresh - time()) ." left" : "never"), la(t("edit feed"), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $feed->fid)), la(t("remove items"), array("mod" => "import", "type" => "feed", "op" => "remove", "id" => $feed->fid)), la(t("update items"), array("mod" => "import", "type" => "feed", "op" => "update", "id" => $feed->fid))); + $rows[] = array($feed->title, $feed->attributes, format_plural($feed->items, "item", "items"), ($feed->timestamp ? format_interval(time() - $feed->timestamp) ." ago" : "never"), ($feed->timestamp ? format_interval($feed->timestamp + $feed->refresh - time()) ." left" : "never"), la(t("edit feed"), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $feed->fid)), la(t("remove items"), array("mod" => "import", "type" => "feed", "op" => "remove", "id" => $feed->fid)), la(t("update items"), array("mod" => "import", "type" => "feed", "op" => "update", "id" => $feed->fid))); } $output .= table($header, $rows); @@ -398,7 +398,7 @@ function import_view() { $header = array(t("title"), t("attributes"), t("operations")); unset($rows); while ($bundle = db_fetch_object($result)) { - $rows[] = array(check_output($bundle->title), check_output($bundle->attributes), la(t("edit bundle"), array("mod" => "import", "type" => "bundle", "op" => "edit", "id" => $bundle->bid))); + $rows[] = array($bundle->title, $bundle->attributes, la(t("edit bundle"), array("mod" => "import", "type" => "bundle", "op" => "edit", "id" => $bundle->bid))); } $output .= table($header, $rows); @@ -411,7 +411,7 @@ function import_tag() { $header = array(t("date"), t("feed"), t("news item")); while ($item = db_fetch_object($result)) { - $rows[] = array(array("data" => format_date($item->timestamp, "small"), "nowrap" => "nowrap", "valign" => "top"), array("data" => la(check_output($item->feed), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $item->fid)), "valign" => "top"), "link) ."\">". check_output($item->title) ."". ($item->description ? "
". check_output($item->description, 1) ."" : "") ."
iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />"); + $rows[] = array(array("data" => format_date($item->timestamp, "small"), "nowrap" => "nowrap", "valign" => "top"), array("data" => la($item->feed, array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $item->fid)), "valign" => "top"), "link\">$item->title". ($item->description ? "
$item->description" : "") ."
iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />"); } $output .= table($header, $rows); @@ -511,7 +511,7 @@ function import_page_last() { } if ($item->description) { - $output .= "
". check_output($item->description, 1) ."

"; + $output .= "
$item->description

"; } unset($links); @@ -530,7 +530,7 @@ function import_page_feed($fid) { $feed = db_fetch_object(db_query("SELECT * FROM feed WHERE fid = '%s'", $fid)); $header .= "

". t("Website") .":

link\">$feed->link

"; - $header .= "

". t("Description") .":

". check_output($feed->description, 1) ."

"; + $header .= "

". t("Description") .":

$feed->description

"; $header .= "

". t("Last update") .":

". format_interval(time() - $feed->timestamp) ." ". t("ago") ."url\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />

\n"; $result = db_query("SELECT * FROM item WHERE fid = '%s' ORDER BY iid DESC LIMIT ". variable_get("import_page_limit", 75), $fid); @@ -546,7 +546,7 @@ function import_page_feed($fid) { $output .= "link\">$item->title". $theme->links($links) ."\n"; } if ($item->description) { - $output .= "
". check_output($item->description, 1) ."

"; + $output .= "
$item->description

"; } unset($links); @@ -555,7 +555,7 @@ function import_page_feed($fid) { $theme->header(); $theme->box(t("News feeds"), import_page_info()); - $theme->box(check_output($feed->title), $header); + $theme->box($feed->title, $header); $theme->box(t("Latest news"), $output); $theme->footer(); } @@ -566,7 +566,7 @@ function import_page_bundle($bid) { $bundle = db_fetch_object(db_query("SELECT * FROM bundle WHERE bid = '%s'", $bid)); $header .= "

". t("Website") .":

". lm($bundle->title, array("mod" => "import", "op" => "bundle", "id" => $bundle->bid)) ."

"; - $header .= "

". t("Description") .":

". t("A composite news feed about") ." ". check_output($bundle->attributes) .".

"; + $header .= "

". t("Description") .":

". t("A composite news feed about") ." $bundle->attributes.

"; $keys = explode(",", $bundle->attributes); foreach ($keys as $key) $where[] = "i.attributes LIKE '%". trim($key) ."%'"; @@ -585,7 +585,7 @@ function import_page_bundle($bid) { } if ($item->description) { - $output .= "
". check_output($item->description, 1) ."

"; + $output .= "
$item->description

"; } unset($links); @@ -594,7 +594,7 @@ function import_page_bundle($bid) { $theme->header(); $theme->box(t("News feeds"), import_page_info()); - $theme->box(check_output($bundle->title), $header); + $theme->box($bundle->title, $header); $theme->box(t("Latest news"), $output); $theme->footer(); @@ -607,7 +607,7 @@ function import_page_sources() { while ($feed = db_fetch_object($result)) { $output .= lm($feed->title, array("mod" => "import", "op" => "feed", "id" => $feed->fid)); - $output .= "
". check_output($feed->description, 1) ."

"; + $output .= "
$feed->description

"; } $output .= lm("image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />", array("mod" => "import", "op" => "fd"), "", array("title" => t("View the list of syndicated websites in XML format."))) ."
\n"; diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 5243ea6dc..a679780cb 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -67,7 +67,7 @@ function import_format_item($item, $feed = 0) { } // external link - $output .= "link) ."\" target=\"new\">". check_output($item->title) .""; + $output .= "link\" target=\"new\">$item->title"; return $output ."
"; } @@ -387,7 +387,7 @@ function import_view() { $header = array(t("title"), t("attributes"), t("items"), t("last update"), t("next update"), array("data" => t("operations"), "colspan" => 3)); unset($rows); while ($feed = db_fetch_object($result)) { - $rows[] = array(check_output($feed->title), check_output($feed->attributes), format_plural($feed->items, "item", "items"), ($feed->timestamp ? format_interval(time() - $feed->timestamp) ." ago" : "never"), ($feed->timestamp ? format_interval($feed->timestamp + $feed->refresh - time()) ." left" : "never"), la(t("edit feed"), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $feed->fid)), la(t("remove items"), array("mod" => "import", "type" => "feed", "op" => "remove", "id" => $feed->fid)), la(t("update items"), array("mod" => "import", "type" => "feed", "op" => "update", "id" => $feed->fid))); + $rows[] = array($feed->title, $feed->attributes, format_plural($feed->items, "item", "items"), ($feed->timestamp ? format_interval(time() - $feed->timestamp) ." ago" : "never"), ($feed->timestamp ? format_interval($feed->timestamp + $feed->refresh - time()) ." left" : "never"), la(t("edit feed"), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $feed->fid)), la(t("remove items"), array("mod" => "import", "type" => "feed", "op" => "remove", "id" => $feed->fid)), la(t("update items"), array("mod" => "import", "type" => "feed", "op" => "update", "id" => $feed->fid))); } $output .= table($header, $rows); @@ -398,7 +398,7 @@ function import_view() { $header = array(t("title"), t("attributes"), t("operations")); unset($rows); while ($bundle = db_fetch_object($result)) { - $rows[] = array(check_output($bundle->title), check_output($bundle->attributes), la(t("edit bundle"), array("mod" => "import", "type" => "bundle", "op" => "edit", "id" => $bundle->bid))); + $rows[] = array($bundle->title, $bundle->attributes, la(t("edit bundle"), array("mod" => "import", "type" => "bundle", "op" => "edit", "id" => $bundle->bid))); } $output .= table($header, $rows); @@ -411,7 +411,7 @@ function import_tag() { $header = array(t("date"), t("feed"), t("news item")); while ($item = db_fetch_object($result)) { - $rows[] = array(array("data" => format_date($item->timestamp, "small"), "nowrap" => "nowrap", "valign" => "top"), array("data" => la(check_output($item->feed), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $item->fid)), "valign" => "top"), "link) ."\">". check_output($item->title) ."". ($item->description ? "
". check_output($item->description, 1) ."" : "") ."
iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />"); + $rows[] = array(array("data" => format_date($item->timestamp, "small"), "nowrap" => "nowrap", "valign" => "top"), array("data" => la($item->feed, array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $item->fid)), "valign" => "top"), "link\">$item->title". ($item->description ? "
$item->description" : "") ."
iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />"); } $output .= table($header, $rows); @@ -511,7 +511,7 @@ function import_page_last() { } if ($item->description) { - $output .= "
". check_output($item->description, 1) ."

"; + $output .= "
$item->description

"; } unset($links); @@ -530,7 +530,7 @@ function import_page_feed($fid) { $feed = db_fetch_object(db_query("SELECT * FROM feed WHERE fid = '%s'", $fid)); $header .= "

". t("Website") .":

link\">$feed->link

"; - $header .= "

". t("Description") .":

". check_output($feed->description, 1) ."

"; + $header .= "

". t("Description") .":

$feed->description

"; $header .= "

". t("Last update") .":

". format_interval(time() - $feed->timestamp) ." ". t("ago") ."url\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />

\n"; $result = db_query("SELECT * FROM item WHERE fid = '%s' ORDER BY iid DESC LIMIT ". variable_get("import_page_limit", 75), $fid); @@ -546,7 +546,7 @@ function import_page_feed($fid) { $output .= "link\">$item->title". $theme->links($links) ."\n"; } if ($item->description) { - $output .= "
". check_output($item->description, 1) ."

"; + $output .= "
$item->description

"; } unset($links); @@ -555,7 +555,7 @@ function import_page_feed($fid) { $theme->header(); $theme->box(t("News feeds"), import_page_info()); - $theme->box(check_output($feed->title), $header); + $theme->box($feed->title, $header); $theme->box(t("Latest news"), $output); $theme->footer(); } @@ -566,7 +566,7 @@ function import_page_bundle($bid) { $bundle = db_fetch_object(db_query("SELECT * FROM bundle WHERE bid = '%s'", $bid)); $header .= "

". t("Website") .":

". lm($bundle->title, array("mod" => "import", "op" => "bundle", "id" => $bundle->bid)) ."

"; - $header .= "

". t("Description") .":

". t("A composite news feed about") ." ". check_output($bundle->attributes) .".

"; + $header .= "

". t("Description") .":

". t("A composite news feed about") ." $bundle->attributes.

"; $keys = explode(",", $bundle->attributes); foreach ($keys as $key) $where[] = "i.attributes LIKE '%". trim($key) ."%'"; @@ -585,7 +585,7 @@ function import_page_bundle($bid) { } if ($item->description) { - $output .= "
". check_output($item->description, 1) ."

"; + $output .= "
$item->description

"; } unset($links); @@ -594,7 +594,7 @@ function import_page_bundle($bid) { $theme->header(); $theme->box(t("News feeds"), import_page_info()); - $theme->box(check_output($bundle->title), $header); + $theme->box($bundle->title, $header); $theme->box(t("Latest news"), $output); $theme->footer(); @@ -607,7 +607,7 @@ function import_page_sources() { while ($feed = db_fetch_object($result)) { $output .= lm($feed->title, array("mod" => "import", "op" => "feed", "id" => $feed->fid)); - $output .= "
". check_output($feed->description, 1) ."

"; + $output .= "
$feed->description

"; } $output .= lm("image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />", array("mod" => "import", "op" => "fd"), "", array("title" => t("View the list of syndicated websites in XML format."))) ."
\n"; diff --git a/modules/block.module b/modules/block.module index 2fcd5d1ea..4176bd171 100644 --- a/modules/block.module +++ b/modules/block.module @@ -62,13 +62,13 @@ function block_block($op = "list", $delta = 0) { if ($op == "list") { $result = db_query("SELECT bid, title, info FROM boxes ORDER BY title"); while ($block = db_fetch_object($result)) { - $blocks[$block->bid]["info"] = check_output($block->info); + $blocks[$block->bid]["info"] = $block->info; } return $blocks; } else { $block = db_fetch_object(db_query("SELECT * FROM boxes WHERE bid = '%d'", $delta)); - $data["subject"] = check_output($block->title); + $data["subject"] = $block->title; $data["content"] = ($block->type == 1) ? eval($block->body) : $block->body; return $data; } diff --git a/modules/block/block.module b/modules/block/block.module index 2fcd5d1ea..4176bd171 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -62,13 +62,13 @@ function block_block($op = "list", $delta = 0) { if ($op == "list") { $result = db_query("SELECT bid, title, info FROM boxes ORDER BY title"); while ($block = db_fetch_object($result)) { - $blocks[$block->bid]["info"] = check_output($block->info); + $blocks[$block->bid]["info"] = $block->info; } return $blocks; } else { $block = db_fetch_object(db_query("SELECT * FROM boxes WHERE bid = '%d'", $delta)); - $data["subject"] = check_output($block->title); + $data["subject"] = $block->title; $data["content"] = ($block->type == 1) ? eval($block->body) : $block->body; return $data; } diff --git a/modules/book.module b/modules/book.module index 4387490f1..d79adb810 100644 --- a/modules/book.module +++ b/modules/book.module @@ -123,7 +123,7 @@ function book_link($type, $node = 0, $main = 0) { $result = db_query("SELECT n.nid, n.title FROM node n LEFT JOIN book b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title"); while ($book = db_fetch_object($result)) { - menu_add("administer book '". check_output($book->title) ."'", "admin.php?mod=book&op=view&id=$book->nid", "Display a book outline.", NULL, "collaborative books"); + menu_add("administer book '$book->title'", "admin.php?mod=book&op=view&id=$book->nid", "Display a book outline.", NULL, "collaborative books"); } } @@ -360,7 +360,7 @@ function book_body($node) { ob_end_clean(); } else { - $output = check_output(filter($node->body), 1); + $output = check_output(filter($node->body)); } return $output; @@ -419,7 +419,7 @@ function book_view($node, $main = 0) { $output .= " $location"; $output .= "
"; - $output .= " ". check_output($node->title) ."". ($node->body ? "
". t("Last updated by %u on %d", array("%u" => format_name($node), "%d" => format_date($node->created))) ." " : "") .""; + $output .= " $node->title". ($node->body ? "
". t("Last updated by %u on %d", array("%u" => format_name($node), "%d" => format_date($node->created))) ." " : "") .""; } if ($node->body) { @@ -436,7 +436,7 @@ function book_view($node, $main = 0) { $output .= "
"; $output .= " ". ($prev ? l(t("previous"), array("id" => $prev->nid), "node", "", array("title" => t("View the previous page in this book."))) : t("previous")) ."". lm(t("index"), array("mod" => "book"), "", array("title" => t("View this book's table of contents."))) ."". ($next ? l(t("next"), array("id" => $next->nid), "node", "", array("title" => t("View the next page in this book."))) : t("next")) .""; - $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), "node", "", array("title" => t("View this page's parent section."))) : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; + $output .= " ". ($prev ? "$prev->title" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), "node", "", array("title" => t("View this page's parent section."))) : t("up")) ."". ($next ? "$next->title" : " ") .""; $output .= "
"; $output .= "
". $theme->links(link_node($node, $main)) ."
"; $output .= ""; @@ -491,7 +491,7 @@ function book_tree_recurse($nid, $depth, $children) { if ($depth > 0) { if ($children[$nid]) { foreach ($children[$nid] as $foo => $node) { - $output .= "
  • ". l(check_output($node->title), array("id" => $node->nid)) ."
  • "; + $output .= "
  • ". l($node->title, array("id" => $node->nid)) ."
  • "; if ($tree = book_tree_recurse($node->nid, $depth - 1, $children)) { $output .= ""; @@ -537,7 +537,7 @@ function book_render() { if ($node) { // output the content: - $output .= "
    ". l(check_output($node->title), array("id" => $node->nid)) ."
    ". book_body($node) ."

    "; + $output .= "
    ". l($node->title, array("id" => $node->nid)) ."
    ". book_body($node) ."

    "; } } @@ -579,7 +579,7 @@ function book_print($id = "", $depth = 1) { if ($node) { // output the content: - $output .= "". check_output($node->title) .""; + $output .= "$node->title"; if ($node->body) { $output .= ""; @@ -606,7 +606,7 @@ function book_print_recurse($parent = "", $depth = 1) { if ($node) { // output the content: - $output .= "". check_output($node->title) .""; + $output .= "$node->title"; if ($node->body) { $output .= ""; @@ -652,7 +652,7 @@ function book_admin_view($nid, $depth = 0) { $node = node_load(array("nid" => $nid)); - $output .= "

    ". check_output($node->title) ."

    "; + $output .= "

    $node->title

    "; $output .= ""; $output .= " "; $output .= book_admin_view_line($node); @@ -707,7 +707,7 @@ function book_admin_orphan() { $output .= " "; foreach ($pages as $nid => $node) { if ($node->parent && empty($pages[$node->parent])) { - $output .= ""; + $output .= ""; } } $output .= "
    titleweightoperations
    titleoperations
    ". l(check_output($node->title), array("id" => $node->nid)) ."". la(t("edit page"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) ."". la(t("delete page"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) ."
    ". l($node->title, array("id" => $node->nid)) ."". la(t("edit page"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) ."". la(t("delete page"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) ."
    "; diff --git a/modules/book/book.module b/modules/book/book.module index 4387490f1..d79adb810 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -123,7 +123,7 @@ function book_link($type, $node = 0, $main = 0) { $result = db_query("SELECT n.nid, n.title FROM node n LEFT JOIN book b ON n.nid = b.nid WHERE b.parent = 0 ORDER BY b.weight, n.title"); while ($book = db_fetch_object($result)) { - menu_add("administer book '". check_output($book->title) ."'", "admin.php?mod=book&op=view&id=$book->nid", "Display a book outline.", NULL, "collaborative books"); + menu_add("administer book '$book->title'", "admin.php?mod=book&op=view&id=$book->nid", "Display a book outline.", NULL, "collaborative books"); } } @@ -360,7 +360,7 @@ function book_body($node) { ob_end_clean(); } else { - $output = check_output(filter($node->body), 1); + $output = check_output(filter($node->body)); } return $output; @@ -419,7 +419,7 @@ function book_view($node, $main = 0) { $output .= " $location"; $output .= "
    "; - $output .= " ". check_output($node->title) ."". ($node->body ? "
    ". t("Last updated by %u on %d", array("%u" => format_name($node), "%d" => format_date($node->created))) ." " : "") .""; + $output .= " $node->title". ($node->body ? "
    ". t("Last updated by %u on %d", array("%u" => format_name($node), "%d" => format_date($node->created))) ." " : "") .""; } if ($node->body) { @@ -436,7 +436,7 @@ function book_view($node, $main = 0) { $output .= "
    "; $output .= " ". ($prev ? l(t("previous"), array("id" => $prev->nid), "node", "", array("title" => t("View the previous page in this book."))) : t("previous")) ."". lm(t("index"), array("mod" => "book"), "", array("title" => t("View this book's table of contents."))) ."". ($next ? l(t("next"), array("id" => $next->nid), "node", "", array("title" => t("View the next page in this book."))) : t("next")) .""; - $output .= " ". ($prev ? "". check_output($prev->title) ."" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), "node", "", array("title" => t("View this page's parent section."))) : t("up")) ."". ($next ? "". check_output($next->title) ."" : " ") .""; + $output .= " ". ($prev ? "$prev->title" : " ") ."". ($node->parent ? l(t("up"), array("id" => $node->parent), "node", "", array("title" => t("View this page's parent section."))) : t("up")) ."". ($next ? "$next->title" : " ") .""; $output .= "
    "; $output .= "
    ". $theme->links(link_node($node, $main)) ."
    "; $output .= ""; @@ -491,7 +491,7 @@ function book_tree_recurse($nid, $depth, $children) { if ($depth > 0) { if ($children[$nid]) { foreach ($children[$nid] as $foo => $node) { - $output .= "
  • ". l(check_output($node->title), array("id" => $node->nid)) ."
  • "; + $output .= "
  • ". l($node->title, array("id" => $node->nid)) ."
  • "; if ($tree = book_tree_recurse($node->nid, $depth - 1, $children)) { $output .= ""; @@ -537,7 +537,7 @@ function book_render() { if ($node) { // output the content: - $output .= "
    ". l(check_output($node->title), array("id" => $node->nid)) ."
    ". book_body($node) ."

    "; + $output .= "
    ". l($node->title, array("id" => $node->nid)) ."
    ". book_body($node) ."

    "; } } @@ -579,7 +579,7 @@ function book_print($id = "", $depth = 1) { if ($node) { // output the content: - $output .= "". check_output($node->title) .""; + $output .= "$node->title"; if ($node->body) { $output .= ""; @@ -606,7 +606,7 @@ function book_print_recurse($parent = "", $depth = 1) { if ($node) { // output the content: - $output .= "". check_output($node->title) .""; + $output .= "$node->title"; if ($node->body) { $output .= ""; @@ -652,7 +652,7 @@ function book_admin_view($nid, $depth = 0) { $node = node_load(array("nid" => $nid)); - $output .= "

    ". check_output($node->title) ."

    "; + $output .= "

    $node->title

    "; $output .= ""; $output .= " "; $output .= book_admin_view_line($node); @@ -707,7 +707,7 @@ function book_admin_orphan() { $output .= " "; foreach ($pages as $nid => $node) { if ($node->parent && empty($pages[$node->parent])) { - $output .= ""; + $output .= ""; } } $output .= "
    titleweightoperations
    titleoperations
    ". l(check_output($node->title), array("id" => $node->nid)) ."". la(t("edit page"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) ."". la(t("delete page"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) ."
    ". l($node->title, array("id" => $node->nid)) ."". la(t("edit page"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) ."". la(t("delete page"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) ."
    "; diff --git a/modules/comment.module b/modules/comment.module index 9de5302a9..d27f36d7d 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -45,12 +45,12 @@ function comment_user($type, $edit, &$user) { switch ($type) { case "view_public": if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature, 1)); + return form_item(t("Signature"), check_output($user->signature)); } break; case "view_private": if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature, 1)); + return form_item(t("Signature"), check_output($user->signature)); } break; case "edit_form": @@ -795,7 +795,7 @@ function comment_admin_overview($status = 0) { $header = array(t("subject"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($comment = db_fetch_object($result)) { - $rows[] = array(l(check_output($comment->subject), array("id" => $comment->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid, array("title" => htmlentities(substr($comment->comment, 0, 128)))) ." ". (comment_is_new($comment) ? theme_mark() : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". la(t("edit comment"), array("mod" => "comment", "op" => "edit", "id" => $comment->cid)), la(t("delete comment"), array("mod" => "comment", "op" => "delete", "id" => $comment->cid))); + $rows[] = array(l($comment->subject, array("id" => $comment->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid, array("title" => htmlentities(substr($comment->comment, 0, 128)))) ." ". (comment_is_new($comment) ? theme_mark() : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". la(t("edit comment"), array("mod" => "comment", "op" => "edit", "id" => $comment->cid)), la(t("delete comment"), array("mod" => "comment", "op" => "delete", "id" => $comment->cid))); } if ($pager = pager_display(NULL, 50, 0, "admin")) { @@ -1153,9 +1153,9 @@ function comment($comment, $link = 0) { $output .= "cid\">"; $output .= "
    "; $output .= ""; - $output .= " "; + $output .= " "; $output .= " "; - $output .= " "; + $output .= " "; $output .= " "; $output .= "
    ". check_output($comment->subject) . ($comment->new ? theme_invoke("theme_mark") : "") ."
    ". $comment->moderation ."
    $comment->subject ". ($comment->new ? theme_invoke("theme_mark") : "") ."
    ". $comment->moderation ."
    ". t("by %a on %b", array("%a" => format_name($comment), "%b" => format_date($comment->timestamp))) ."
    ". check_output($comment->comment, 1) ."
    ". check_output($comment->comment) ."
    $link
    "; $output .= "

    "; @@ -1163,7 +1163,7 @@ function comment($comment, $link = 0) { } function comment_folded($comment) { - print l(check_output($comment->subject), array("id" => $comment->nid, "cid" => $comment->cid), "node", $comment->cid) ." ". t("by") . " " . format_name($comment) ."

    "; + print l($comment->subject, array("id" => $comment->nid, "cid" => $comment->cid), "node", $comment->cid) ." ". t("by") . " " . format_name($comment) ."

    "; } function comment_flat_collapsed($comments, $threshold) { diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 9de5302a9..d27f36d7d 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -45,12 +45,12 @@ function comment_user($type, $edit, &$user) { switch ($type) { case "view_public": if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature, 1)); + return form_item(t("Signature"), check_output($user->signature)); } break; case "view_private": if ($user->signature) { - return form_item(t("Signature"), check_output($user->signature, 1)); + return form_item(t("Signature"), check_output($user->signature)); } break; case "edit_form": @@ -795,7 +795,7 @@ function comment_admin_overview($status = 0) { $header = array(t("subject"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($comment = db_fetch_object($result)) { - $rows[] = array(l(check_output($comment->subject), array("id" => $comment->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid, array("title" => htmlentities(substr($comment->comment, 0, 128)))) ." ". (comment_is_new($comment) ? theme_mark() : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". la(t("edit comment"), array("mod" => "comment", "op" => "edit", "id" => $comment->cid)), la(t("delete comment"), array("mod" => "comment", "op" => "delete", "id" => $comment->cid))); + $rows[] = array(l($comment->subject, array("id" => $comment->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid, array("title" => htmlentities(substr($comment->comment, 0, 128)))) ." ". (comment_is_new($comment) ? theme_mark() : ""), format_name($comment), ($comment->status == 0 ? t("published") : t("not published")) ."". la(t("edit comment"), array("mod" => "comment", "op" => "edit", "id" => $comment->cid)), la(t("delete comment"), array("mod" => "comment", "op" => "delete", "id" => $comment->cid))); } if ($pager = pager_display(NULL, 50, 0, "admin")) { @@ -1153,9 +1153,9 @@ function comment($comment, $link = 0) { $output .= "cid\">"; $output .= "

    "; $output .= ""; - $output .= " "; + $output .= " "; $output .= " "; - $output .= " "; + $output .= " "; $output .= " "; $output .= "
    ". check_output($comment->subject) . ($comment->new ? theme_invoke("theme_mark") : "") ."
    ". $comment->moderation ."
    $comment->subject ". ($comment->new ? theme_invoke("theme_mark") : "") ."
    ". $comment->moderation ."
    ". t("by %a on %b", array("%a" => format_name($comment), "%b" => format_date($comment->timestamp))) ."
    ". check_output($comment->comment, 1) ."
    ". check_output($comment->comment) ."
    $link
    "; $output .= "

    "; @@ -1163,7 +1163,7 @@ function comment($comment, $link = 0) { } function comment_folded($comment) { - print l(check_output($comment->subject), array("id" => $comment->nid, "cid" => $comment->cid), "node", $comment->cid) ." ". t("by") . " " . format_name($comment) ."

    "; + print l($comment->subject, array("id" => $comment->nid, "cid" => $comment->cid), "node", $comment->cid) ." ". t("by") . " " . format_name($comment) ."

    "; } function comment_flat_collapsed($comments, $threshold) { diff --git a/modules/forum.module b/modules/forum.module index d87ad5fd1..dc867b28e 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -180,16 +180,16 @@ function forum_view($node, $main = 0) { /* TODO: find out what this code was ment to do and either use it or not. - $output .= "

    "._forum_get_icon($node)." ".lm(check_output($voc->name), array("mod" => "forum"))." : ".lm(check_output($term_data->name), array("mod" => "forum", "tid" => $term_data->tid)); + $output .= "

    ". _forum_get_icon($node) ." ". lm($voc->name, array("mod" => "forum")) ." : ". lm($term_data->name, array("mod" => "forum", "tid" => $term_data->tid)); - $output .= " / ". check_output($node->title) ."
    ".t("%a by %b", array("%a" => format_date($node->created), "%b" => format_name($node)))."

    ". check_output($node->body, 1) ."

    "; + $output .= " / $node->title
    ".t("%a by %b", array("%a" => format_date($node->created), "%b" => format_name($node)))."

    ". check_output($node->body) ."

    "; $output .= "

    ". $theme->links(link_node($node, $main)) ."

    "; #$theme->box(t("Discussion forum"), $output); */ if (!$main) { - $node->title = _forum_get_icon($node)." ".lm(check_output($voc->name), array("mod" => "forum"))." : ".lm(check_output($term_data->name), array("mod" => "forum", "tid" => $term_data->tid)) . " / ". check_output($node->title) .""; + $node->title = _forum_get_icon($node) ." ". lm($voc->name, array("mod" => "forum")) ." : ". lm($term_data->name, array("mod" => "forum", "tid" => $term_data->tid)) ." / $node->title"; } $theme->node($node, $main); @@ -568,13 +568,13 @@ function forum_forum_list($forums, $parents, $tid) { foreach ($forums as $forum) { if ($forum->container) { - $output .= " ". lm(check_output($forum->name), array("mod" => "forum", "tid" => $forum->tid))."
    ". ($forum->description ? check_output($forum->description, 1) : "") .""; + $output .= " ". lm($forum->name, array("mod" => "forum", "tid" => $forum->tid)) ."
    ". ($forum->description ? check_output($forum->description) : "") .""; } else { if ($user->uid) $new_topics = $forum->num_topics - $forum->old_topics; $icon = _forum_get_folder_icon($new_topics); $output .= "  $icon"; - $output .= "
    depth * 20) ."\"> ".lm(check_output($forum->name), array("mod" => "forum", "tid" => $forum->tid))."
    ". check_output($forum->description, 1); + $output .= "
    - + "; } @@ -652,7 +652,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse - + @@ -691,7 +691,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse function _forum_get_icon($node) { if (variable_get("forum_topic_icon_path", "") && $node->icon) { - return "icon)."\">"; + return "icon\" />"; } else { return " "; diff --git a/modules/forum/forum.module b/modules/forum/forum.module index d87ad5fd1..dc867b28e 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -180,16 +180,16 @@ function forum_view($node, $main = 0) { /* TODO: find out what this code was ment to do and either use it or not. - $output .= "

    "._forum_get_icon($node)." ".lm(check_output($voc->name), array("mod" => "forum"))." : ".lm(check_output($term_data->name), array("mod" => "forum", "tid" => $term_data->tid)); + $output .= "

    ". _forum_get_icon($node) ." ". lm($voc->name, array("mod" => "forum")) ." : ". lm($term_data->name, array("mod" => "forum", "tid" => $term_data->tid)); - $output .= " / ". check_output($node->title) ."
    ".t("%a by %b", array("%a" => format_date($node->created), "%b" => format_name($node)))."

    ". check_output($node->body, 1) ."

    "; + $output .= " / $node->title
    ".t("%a by %b", array("%a" => format_date($node->created), "%b" => format_name($node)))."

    ". check_output($node->body) ."

    "; $output .= "

    ". $theme->links(link_node($node, $main)) ."

    "; #$theme->box(t("Discussion forum"), $output); */ if (!$main) { - $node->title = _forum_get_icon($node)." ".lm(check_output($voc->name), array("mod" => "forum"))." : ".lm(check_output($term_data->name), array("mod" => "forum", "tid" => $term_data->tid)) . " / ". check_output($node->title) .""; + $node->title = _forum_get_icon($node) ." ". lm($voc->name, array("mod" => "forum")) ." : ". lm($term_data->name, array("mod" => "forum", "tid" => $term_data->tid)) ." / $node->title"; } $theme->node($node, $main); @@ -568,13 +568,13 @@ function forum_forum_list($forums, $parents, $tid) { foreach ($forums as $forum) { if ($forum->container) { - $output .= " "; + $output .= " "; } else { if ($user->uid) $new_topics = $forum->num_topics - $forum->old_topics; $icon = _forum_get_folder_icon($new_topics); $output .= " "; - $output .= "
    depth * 20) ."\"> ". lm($forum->name, array("mod" => "forum", "tid" => $forum->tid))."
    ". check_output($forum->description); $links = array(); if ($forum->last_post) { @@ -643,7 +643,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse
    "._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."". check_output($topic->title) ."$topic->title ".lm(t("This topic has been moved"), array("mod" => "forum", "tid" => $topic->shadow))."
    "._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."".l(check_output($topic->title), array("id" => $topic->nid))."". l($topic->title, array("id" => $topic->nid))." ".$topic->num_comments.($topic->new_replies ? " (".t("%a new", array("%a" => $topic->new_replies)).")" : "")." "._forum_format($topic)." "._forum_format($topic->last_reply)."
    ". lm(check_output($forum->name), array("mod" => "forum", "tid" => $forum->tid))."
    ". ($forum->description ? check_output($forum->description, 1) : "") ."
    ". lm($forum->name, array("mod" => "forum", "tid" => $forum->tid)) ."
    ". ($forum->description ? check_output($forum->description) : "") ."
     $icon"; - $output .= ""; + $output .= ""; $output .= ""; } diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index ff3eb87a2..ec27e9eaf 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -427,7 +427,7 @@ function statistics_recent_refer($nid = 0) { $header = array(t("URL"), t("date")); while ($referrer = db_fetch_array($result)) { - $rows[] = array("". substr(check_output($referrer["url"]), 0, 100) ."", format_date($referrer["timestamp"], "small")); + $rows[] = array("". substr($referrer["url"], 0, 100) ."", format_date($referrer["timestamp"], "small")); } $output .= table($header, $rows); @@ -479,7 +479,7 @@ function statistics_top_refer($nid = 0) { $header = array(t("URL"), t("count")); while ($referrer = db_fetch_array($result)) { - $rows[] = array("". substr(check_output($referrer["url"]), 0, 100) ."", $referrer["count"]); + $rows[] = array("". substr($referrer["url"], 0, 100) ."", $referrer["count"]); } $output .= table($header, $rows); @@ -889,7 +889,7 @@ function statistics_summary($dbfield, $dbrows) { $links = link_node($content, 1); $output .= ""; - $output .= ""; + $output .= ""; $output .= ""; } diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 8a61d2b71..9c6f051ad 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -276,7 +276,7 @@ function taxonomy_overview() { if ($tree) { unset($data); foreach ($tree as $term) { - $data .= _taxonomy_depth($term->depth) ." ". $term->name ." (". la(t("edit term"), array("mod" => "taxonomy", "op" => "edit", "type" => "term", "id" => check_output($term->tid))) .")
    "; + $data .= _taxonomy_depth($term->depth) ." ". $term->name ." (". la(t("edit term"), array("mod" => "taxonomy", "op" => "edit", "type" => "term", "id" => $term->tid)) .")
    "; } $rows[] = array(array("data" => $data, "colspan" => 5)); } diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 8a61d2b71..9c6f051ad 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -276,7 +276,7 @@ function taxonomy_overview() { if ($tree) { unset($data); foreach ($tree as $term) { - $data .= _taxonomy_depth($term->depth) ." ". $term->name ." (". la(t("edit term"), array("mod" => "taxonomy", "op" => "edit", "type" => "term", "id" => check_output($term->tid))) .")
    "; + $data .= _taxonomy_depth($term->depth) ." ". $term->name ." (". la(t("edit term"), array("mod" => "taxonomy", "op" => "edit", "type" => "term", "id" => $term->tid)) .")
    "; } $rows[] = array(array("data" => $data, "colspan" => 5)); } diff --git a/modules/tracker.module b/modules/tracker.module index e663ea798..5a2683dd9 100644 --- a/modules/tracker.module +++ b/modules/tracker.module @@ -37,7 +37,7 @@ function tracker_comments($id = 0) { } while ($node = db_fetch_object($sresult)) { - $output .= format_plural($node->comments, "comment", "comments") ." ". t("attached to node") ." ". l(check_output($node->title), array("id" => $node->nid)) .":\n"; + $output .= format_plural($node->comments, "comment", "comments") ." ". t("attached to node") ." ". l($node->title, array("id" => $node->nid)) .":\n"; if ($id) { $cresult = db_query("SELECT c.*, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.timestamp > $period AND c.uid = '%d' AND c.nid = '%d' ORDER BY cid DESC", $id, $node->nid); @@ -48,7 +48,7 @@ function tracker_comments($id = 0) { $output .= "
      "; while ($comment = db_fetch_object($cresult)) { - $output .= "
    • ". l(check_output($comment->subject), array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." ". t("by") ." ". format_name($comment) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? theme_invoke("theme_mark") : "") ."
    • \n"; + $output .= "
    • ". l($comment->subject, array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." ". t("by") ." ". format_name($comment) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? theme_invoke("theme_mark") : "") ."
    • \n"; } $output .= "
    \n"; } diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index e663ea798..5a2683dd9 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -37,7 +37,7 @@ function tracker_comments($id = 0) { } while ($node = db_fetch_object($sresult)) { - $output .= format_plural($node->comments, "comment", "comments") ." ". t("attached to node") ." ". l(check_output($node->title), array("id" => $node->nid)) .":\n"; + $output .= format_plural($node->comments, "comment", "comments") ." ". t("attached to node") ." ". l($node->title, array("id" => $node->nid)) .":\n"; if ($id) { $cresult = db_query("SELECT c.*, u.name FROM comments c LEFT JOIN users u ON c.uid = u.uid WHERE c.timestamp > $period AND c.uid = '%d' AND c.nid = '%d' ORDER BY cid DESC", $id, $node->nid); @@ -48,7 +48,7 @@ function tracker_comments($id = 0) { $output .= "
      "; while ($comment = db_fetch_object($cresult)) { - $output .= "
    • ". l(check_output($comment->subject), array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." ". t("by") ." ". format_name($comment) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? theme_invoke("theme_mark") : "") ."
    • \n"; + $output .= "
    • ". l($comment->subject, array("id" => $node->nid, "cid" => $comment->cid, "pid" => $comment->pid), "node", $comment->cid) ." ". t("by") ." ". format_name($comment) ." (". t("replies") .": ". comment_num_replies($comment->cid) .") ". (comment_is_new($comment) ? theme_invoke("theme_mark") : "") ."
    • \n"; } $output .= "
    \n"; } diff --git a/modules/user.module b/modules/user.module index dbb25ef73..1f1493385 100644 --- a/modules/user.module +++ b/modules/user.module @@ -602,7 +602,7 @@ function user_login($edit = array(), $msg = "") { */ if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } /* @@ -705,7 +705,7 @@ function user_pass($edit = array()) { // Display error message if necessary. if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } /* @@ -827,7 +827,7 @@ function user_register($edit = array()) { } else { if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } } @@ -944,7 +944,7 @@ function user_edit($edit = array()) { } if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } if (!$edit) { @@ -997,8 +997,8 @@ function user_view($uid = 0) { } if ($user->uid && $user->uid == $uid) { - $output = form_item(t("Name"), check_output("$user->name ($user->init)")); - $output .= form_item(t("E-mail address"), check_output($user->mail)); + $output = form_item(t("Name"), "$user->name ($user->init)"); + $output .= form_item(t("E-mail address"), $user->mail); foreach (module_list() as $module) { if (module_hook($module, "user")) { @@ -1012,7 +1012,7 @@ function user_view($uid = 0) { $theme->footer(); } else if ($uid && $account = user_load(array("uid" => $uid, "status" => 1))) { - $output = form_item(t("Name"), check_output($account->name)); + $output = form_item(t("Name"), $account->name); foreach (module_list() as $module) { if (module_hook($module, "user")) { @@ -1144,7 +1144,7 @@ function user_admin_create($edit = array()) { else { if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } $output .= form_textfield(t("Username"), "name", $edit["name"], 30, 55, t("Provide the username of the new account.")); @@ -1401,7 +1401,7 @@ function user_admin_edit($edit = array()) { $output .= status(t("your user information changes have been saved.")); } else { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } } else if ($op == t("Delete account")) { @@ -1419,7 +1419,7 @@ function user_admin_edit($edit = array()) { ** Display user form: */ - $output .= form_item(t("User ID"), check_output($account->uid)); + $output .= form_item(t("User ID"), $account->uid); $output .= form_textfield(t("Username"), "name", $account->name, 30, 55, t("Your full name or your preferred username: only letters, numbers and spaces are allowed.")); $output .= form_textfield(t("E-mail address"), "mail", $account->mail, 30, 55, t("Insert a valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.")); diff --git a/modules/user/user.module b/modules/user/user.module index dbb25ef73..1f1493385 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -602,7 +602,7 @@ function user_login($edit = array(), $msg = "") { */ if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } /* @@ -705,7 +705,7 @@ function user_pass($edit = array()) { // Display error message if necessary. if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } /* @@ -827,7 +827,7 @@ function user_register($edit = array()) { } else { if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } } @@ -944,7 +944,7 @@ function user_edit($edit = array()) { } if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } if (!$edit) { @@ -997,8 +997,8 @@ function user_view($uid = 0) { } if ($user->uid && $user->uid == $uid) { - $output = form_item(t("Name"), check_output("$user->name ($user->init)")); - $output .= form_item(t("E-mail address"), check_output($user->mail)); + $output = form_item(t("Name"), "$user->name ($user->init)"); + $output .= form_item(t("E-mail address"), $user->mail); foreach (module_list() as $module) { if (module_hook($module, "user")) { @@ -1012,7 +1012,7 @@ function user_view($uid = 0) { $theme->footer(); } else if ($uid && $account = user_load(array("uid" => $uid, "status" => 1))) { - $output = form_item(t("Name"), check_output($account->name)); + $output = form_item(t("Name"), $account->name); foreach (module_list() as $module) { if (module_hook($module, "user")) { @@ -1144,7 +1144,7 @@ function user_admin_create($edit = array()) { else { if ($error) { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } $output .= form_textfield(t("Username"), "name", $edit["name"], 30, 55, t("Provide the username of the new account.")); @@ -1401,7 +1401,7 @@ function user_admin_edit($edit = array()) { $output .= status(t("your user information changes have been saved.")); } else { - $output .= theme_invoke("theme_error", check_output($error)); + $output .= theme_invoke("theme_error", $error); } } else if ($op == t("Delete account")) { @@ -1419,7 +1419,7 @@ function user_admin_edit($edit = array()) { ** Display user form: */ - $output .= form_item(t("User ID"), check_output($account->uid)); + $output .= form_item(t("User ID"), $account->uid); $output .= form_textfield(t("Username"), "name", $account->name, 30, 55, t("Your full name or your preferred username: only letters, numbers and spaces are allowed.")); $output .= form_textfield(t("E-mail address"), "mail", $account->mail, 30, 55, t("Insert a valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used if you wish to receive a new password or wish to receive certain news or notifications by e-mail.")); diff --git a/modules/watchdog.module b/modules/watchdog.module index 5fef79158..396351953 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -71,12 +71,12 @@ function watchdog_view($id) { if ($watchdog = db_fetch_object($result)) { $output .= "
    depth * 20) ."\"> ".lm(check_output($forum->name), array("mod" => "forum", "tid" => $forum->tid))."
    ". check_output($forum->description, 1); + $output .= "
    - + "; } @@ -652,7 +652,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse - + @@ -691,7 +691,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse function _forum_get_icon($node) { if (variable_get("forum_topic_icon_path", "") && $node->icon) { - return "icon)."\">"; + return "icon\" />"; } else { return " "; diff --git a/modules/import.module b/modules/import.module index 5243ea6dc..a679780cb 100644 --- a/modules/import.module +++ b/modules/import.module @@ -67,7 +67,7 @@ function import_format_item($item, $feed = 0) { } // external link - $output .= "link) ."\" target=\"new\">". check_output($item->title) .""; + $output .= "link\" target=\"new\">$item->title"; return $output ."
    "; } @@ -387,7 +387,7 @@ function import_view() { $header = array(t("title"), t("attributes"), t("items"), t("last update"), t("next update"), array("data" => t("operations"), "colspan" => 3)); unset($rows); while ($feed = db_fetch_object($result)) { - $rows[] = array(check_output($feed->title), check_output($feed->attributes), format_plural($feed->items, "item", "items"), ($feed->timestamp ? format_interval(time() - $feed->timestamp) ." ago" : "never"), ($feed->timestamp ? format_interval($feed->timestamp + $feed->refresh - time()) ." left" : "never"), la(t("edit feed"), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $feed->fid)), la(t("remove items"), array("mod" => "import", "type" => "feed", "op" => "remove", "id" => $feed->fid)), la(t("update items"), array("mod" => "import", "type" => "feed", "op" => "update", "id" => $feed->fid))); + $rows[] = array($feed->title, $feed->attributes, format_plural($feed->items, "item", "items"), ($feed->timestamp ? format_interval(time() - $feed->timestamp) ." ago" : "never"), ($feed->timestamp ? format_interval($feed->timestamp + $feed->refresh - time()) ." left" : "never"), la(t("edit feed"), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $feed->fid)), la(t("remove items"), array("mod" => "import", "type" => "feed", "op" => "remove", "id" => $feed->fid)), la(t("update items"), array("mod" => "import", "type" => "feed", "op" => "update", "id" => $feed->fid))); } $output .= table($header, $rows); @@ -398,7 +398,7 @@ function import_view() { $header = array(t("title"), t("attributes"), t("operations")); unset($rows); while ($bundle = db_fetch_object($result)) { - $rows[] = array(check_output($bundle->title), check_output($bundle->attributes), la(t("edit bundle"), array("mod" => "import", "type" => "bundle", "op" => "edit", "id" => $bundle->bid))); + $rows[] = array($bundle->title, $bundle->attributes, la(t("edit bundle"), array("mod" => "import", "type" => "bundle", "op" => "edit", "id" => $bundle->bid))); } $output .= table($header, $rows); @@ -411,7 +411,7 @@ function import_tag() { $header = array(t("date"), t("feed"), t("news item")); while ($item = db_fetch_object($result)) { - $rows[] = array(array("data" => format_date($item->timestamp, "small"), "nowrap" => "nowrap", "valign" => "top"), array("data" => la(check_output($item->feed), array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $item->fid)), "valign" => "top"), "link) ."\">". check_output($item->title) ."". ($item->description ? "
    ". check_output($item->description, 1) ."" : "") ."
    iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />"); + $rows[] = array(array("data" => format_date($item->timestamp, "small"), "nowrap" => "nowrap", "valign" => "top"), array("data" => la($item->feed, array("mod" => "import", "type" => "feed", "op" => "edit", "id" => $item->fid)), "valign" => "top"), "link\">$item->title". ($item->description ? "
    $item->description" : "") ."
    iid]\" value=\"". check_form($item->attributes) ."\" size=\"50\" />"); } $output .= table($header, $rows); @@ -511,7 +511,7 @@ function import_page_last() { } if ($item->description) { - $output .= ""; + $output .= ""; } unset($links); @@ -530,7 +530,7 @@ function import_page_feed($fid) { $feed = db_fetch_object(db_query("SELECT * FROM feed WHERE fid = '%s'", $fid)); $header .= "

    ". t("Website") .":

    "; - $header .= "

    ". t("Description") .":

    ". check_output($feed->description, 1) ."

    "; + $header .= "

    ". t("Description") .":

    $feed->description

    "; $header .= "

    ". t("Last update") .":

    ". format_interval(time() - $feed->timestamp) ." ". t("ago") ."url\">image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />

    \n"; $result = db_query("SELECT * FROM item WHERE fid = '%s' ORDER BY iid DESC LIMIT ". variable_get("import_page_limit", 75), $fid); @@ -546,7 +546,7 @@ function import_page_feed($fid) { $output .= "\n"; } if ($item->description) { - $output .= ""; + $output .= ""; } unset($links); @@ -555,7 +555,7 @@ function import_page_feed($fid) { $theme->header(); $theme->box(t("News feeds"), import_page_info()); - $theme->box(check_output($feed->title), $header); + $theme->box($feed->title, $header); $theme->box(t("Latest news"), $output); $theme->footer(); } @@ -566,7 +566,7 @@ function import_page_bundle($bid) { $bundle = db_fetch_object(db_query("SELECT * FROM bundle WHERE bid = '%s'", $bid)); $header .= "

    ". t("Website") .":

    ". lm($bundle->title, array("mod" => "import", "op" => "bundle", "id" => $bundle->bid)) ."

    "; - $header .= "

    ". t("Description") .":

    ". t("A composite news feed about") ." ". check_output($bundle->attributes) .".

    "; + $header .= "

    ". t("Description") .":

    ". t("A composite news feed about") ." $bundle->attributes.

    "; $keys = explode(",", $bundle->attributes); foreach ($keys as $key) $where[] = "i.attributes LIKE '%". trim($key) ."%'"; @@ -585,7 +585,7 @@ function import_page_bundle($bid) { } if ($item->description) { - $output .= ""; + $output .= ""; } unset($links); @@ -594,7 +594,7 @@ function import_page_bundle($bid) { $theme->header(); $theme->box(t("News feeds"), import_page_info()); - $theme->box(check_output($bundle->title), $header); + $theme->box($bundle->title, $header); $theme->box(t("Latest news"), $output); $theme->footer(); @@ -607,7 +607,7 @@ function import_page_sources() { while ($feed = db_fetch_object($result)) { $output .= lm($feed->title, array("mod" => "import", "op" => "feed", "id" => $feed->fid)); - $output .= "
    ". check_output($feed->description, 1) ."

    "; + $output .= "
    $feed->description

    "; } $output .= lm("image("xml.gif") ."\" width=\"36\" height=\"14\" align=\"right\" border=\"0\" />", array("mod" => "import", "op" => "fd"), "", array("title" => t("View the list of syndicated websites in XML format."))) ."
    \n"; diff --git a/modules/locale.module b/modules/locale.module index 0699879ac..48a480aff 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -91,7 +91,7 @@ function locale_edit($lid) { $result = db_query("SELECT * FROM locales WHERE lid = '$lid'"); if ($translation = db_fetch_object($result)) { - $form .= form_item(t("Original text"), "
    ". wordwrap(check_output($translation->string)) ."
    "); + $form .= form_item(t("Original text"), "
    ". wordwrap($translation->string) ."
    "); foreach ($languages as $code=>$language) $form .= (strlen($translation->string) > 30) ? form_textarea($language, $code, $translation->$code, 50, 10) : form_textfield($language, $code, $translation->$code, 50, 128); $form .= form_submit(t("Save translations")); @@ -102,8 +102,8 @@ function locale_edit($lid) { function locale_languages($translation) { global $languages; - foreach ($languages as $key=>$value) { - $output .= ($translation->$key) ? "$key) ."\">$key " : "$key "; + foreach ($languages as $key => $value) { + $output .= ($translation->$key) ? "$key ."\">$key " : "$key "; } return $output; @@ -262,7 +262,7 @@ function locale($string) { } if ($locale_t[$string] != "") { - $string = check_output($locale_t[$string]); + $string = $locale_t[$string]; } else { $result = db_query("SELECT lid, $locale FROM locales WHERE string = '%s'", $string); diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 0699879ac..48a480aff 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -91,7 +91,7 @@ function locale_edit($lid) { $result = db_query("SELECT * FROM locales WHERE lid = '$lid'"); if ($translation = db_fetch_object($result)) { - $form .= form_item(t("Original text"), "
    ". wordwrap(check_output($translation->string)) ."
    "); + $form .= form_item(t("Original text"), "
    ". wordwrap($translation->string) ."
    "); foreach ($languages as $code=>$language) $form .= (strlen($translation->string) > 30) ? form_textarea($language, $code, $translation->$code, 50, 10) : form_textfield($language, $code, $translation->$code, 50, 128); $form .= form_submit(t("Save translations")); @@ -102,8 +102,8 @@ function locale_edit($lid) { function locale_languages($translation) { global $languages; - foreach ($languages as $key=>$value) { - $output .= ($translation->$key) ? "$key) ."\">$key " : "$key "; + foreach ($languages as $key => $value) { + $output .= ($translation->$key) ? "$key ."\">$key " : "$key "; } return $output; @@ -262,7 +262,7 @@ function locale($string) { } if ($locale_t[$string] != "") { - $string = check_output($locale_t[$string]); + $string = $locale_t[$string]; } else { $result = db_query("SELECT lid, $locale FROM locales WHERE string = '%s'", $string); diff --git a/modules/node.module b/modules/node.module index 50e90c063..56dbd2d2e 100644 --- a/modules/node.module +++ b/modules/node.module @@ -30,7 +30,7 @@ function node_title_list($result, $title = NULL) { while ($node = db_fetch_object($result)) { $number = module_invoke("comment", "num_all", $node->nid); $name = strip_tags(format_name($node)); // required for anonymous users to work - $items[] = l(check_output($node->title), array("id" => $node->nid), "node", "", array("title" => t("Author: %name, comments: %number", array("%name" => $name, "%number" => $number)))); + $items[] = l($node->title, array("id" => $node->nid), "node", "", array("title" => t("Author: %name, comments: %number", array("%name" => $name, "%number" => $number)))); } return theme_invoke("theme_item_list", $items, $title); @@ -496,7 +496,7 @@ function node_admin_nodes() { $header = array(t("title"), t("type"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($node = db_fetch_object($result)) { - $rows[] = array(l(check_output($node->title), array("id" => $node->nid)), module_invoke($node->type, "node", "name"), format_name($node), ($node->status ? t("published") : t("not published")), la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)), la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid))); + $rows[] = array(l($node->title, array("id" => $node->nid)), module_invoke($node->type, "node", "name"), format_name($node), ($node->status ? t("published") : t("not published")), la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)), la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid))); } if ($pager = pager_display(NULL, 50, 0, "admin")) { @@ -1197,7 +1197,7 @@ function node_delete($edit) { $output = t("The node has been deleted."); } else { - $output .= form_item(t("Confirm deletion"), check_output($node->title)); + $output .= form_item(t("Confirm deletion"), $node->title); $output .= form_hidden("nid", $node->nid); $output .= form_hidden("confirm", 1); $output .= form_submit(t("Delete")); diff --git a/modules/node/node.module b/modules/node/node.module index 50e90c063..56dbd2d2e 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -30,7 +30,7 @@ function node_title_list($result, $title = NULL) { while ($node = db_fetch_object($result)) { $number = module_invoke("comment", "num_all", $node->nid); $name = strip_tags(format_name($node)); // required for anonymous users to work - $items[] = l(check_output($node->title), array("id" => $node->nid), "node", "", array("title" => t("Author: %name, comments: %number", array("%name" => $name, "%number" => $number)))); + $items[] = l($node->title, array("id" => $node->nid), "node", "", array("title" => t("Author: %name, comments: %number", array("%name" => $name, "%number" => $number)))); } return theme_invoke("theme_item_list", $items, $title); @@ -496,7 +496,7 @@ function node_admin_nodes() { $header = array(t("title"), t("type"), t("author"), t("status"), array("data" => t("operations"), "colspan" => 2)); while ($node = db_fetch_object($result)) { - $rows[] = array(l(check_output($node->title), array("id" => $node->nid)), module_invoke($node->type, "node", "name"), format_name($node), ($node->status ? t("published") : t("not published")), la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)), la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid))); + $rows[] = array(l($node->title, array("id" => $node->nid)), module_invoke($node->type, "node", "name"), format_name($node), ($node->status ? t("published") : t("not published")), la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)), la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid))); } if ($pager = pager_display(NULL, 50, 0, "admin")) { @@ -1197,7 +1197,7 @@ function node_delete($edit) { $output = t("The node has been deleted."); } else { - $output .= form_item(t("Confirm deletion"), check_output($node->title)); + $output .= form_item(t("Confirm deletion"), $node->title); $output .= form_hidden("nid", $node->nid); $output .= form_hidden("confirm", 1); $output .= form_submit(t("Delete")); diff --git a/modules/queue.module b/modules/queue.module index 7cfc6f5c2..f27b5b56a 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -88,14 +88,14 @@ function queue_overview() { $output .= " "; while ($node = db_fetch_object($result)) { if ($user->uid == $node->uid || field_get($node->users, $user->uid)) { - $output .= " "; + $output .= " "; } else { - $output .= " "; + $output .= " "; } if ($node->teaser) { - $output .= " "; + $output .= " "; } } $output .= "
    depth * 20) ."\"> ". lm($forum->name, array("mod" => "forum", "tid" => $forum->tid))."
    ". check_output($forum->description); $links = array(); if ($forum->last_post) { @@ -643,7 +643,7 @@ function forum_topic_list($topics, $num_topics, $sortby, $forum_per_page, $offse
    "._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."". check_output($topic->title) ."$topic->title ".lm(t("This topic has been moved"), array("mod" => "forum", "tid" => $topic->shadow))."
    "._forum_get_folder_icon($topic->new, $topic->num_comments, $topic->comment_mode)." "._forum_get_icon($topic)."".l(check_output($topic->title), array("id" => $topic->nid))."". l($topic->title, array("id" => $topic->nid))." ".$topic->num_comments.($topic->new_replies ? " (".t("%a new", array("%a" => $topic->new_replies)).")" : "")." "._forum_format($topic)." "._forum_format($topic->last_reply)."
    ". check_output($item->description, 1) ."

    $item->description

    link\">$item->title". $theme->links($links) ."
    ". check_output($item->description, 1) ."

    $item->description

    ". check_output($item->description, 1) ."

    $item->description

    ". t("Subject") ."". t("Author") ."". t("Type") ."". t("Score") ."
    ". lm(check_output($node->title), array("mod" => "queue", "op" => "view", "id" => $node->nid)) ."". format_name($node) ."". module_invoke($node->type, "node", "name") ."". queue_score($node->nid) ."
    ". lm($node->title, array("mod" => "queue", "op" => "view", "id" => $node->nid)) ."". format_name($node) ."". module_invoke($node->type, "node", "name") ."". queue_score($node->nid) ."
    ". lm(check_output($node->title), array("mod" => "queue", "op" => "view", "id" => $node->nid)) ."". format_name($node) ."". module_invoke($node->type, "node", "name") ."". lm(t("vote"), array("mod" => "queue", "op" => "view", "id" => $node->nid)) ."
    ". lm($node->title, array("mod" => "queue", "op" => "view", "id" => $node->nid)) ."". format_name($node) ."". module_invoke($node->type, "node", "name") ."". lm(t("vote"), array("mod" => "queue", "op" => "view", "id" => $node->nid)) ."
    ". check_output($node->teaser, 1) ."
    ". check_output($node->teaser) ."
    "; diff --git a/modules/search.module b/modules/search.module index aa7a97b68..619c51b8e 100644 --- a/modules/search.module +++ b/modules/search.module @@ -182,10 +182,10 @@ function do_search($search_array) { } switch ($type) { case "node": - $find[$i++] = array("count" => $count, "title" => check_output($title), "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "node", "type" => "node", "op" => "edit", "id" => $lno), "admin") : drupal_url(array("id" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); + $find[$i++] = array("count" => $count, "title" => $title, "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "node", "type" => "node", "op" => "edit", "id" => $lno), "admin") : drupal_url(array("id" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); break; case "comment": - $find[$i++] = array("count" => $count, "title" => check_output($title), "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "comment", "op" => "edit", "id" =>$lno), "admin") : drupal_url(array("id" => $nid, "cid" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); + $find[$i++] = array("count" => $count, "title" => $title, "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "comment", "op" => "edit", "id" =>$lno), "admin") : drupal_url(array("id" => $nid, "cid" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); break; } } diff --git a/modules/search/search.module b/modules/search/search.module index aa7a97b68..619c51b8e 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -182,10 +182,10 @@ function do_search($search_array) { } switch ($type) { case "node": - $find[$i++] = array("count" => $count, "title" => check_output($title), "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "node", "type" => "node", "op" => "edit", "id" => $lno), "admin") : drupal_url(array("id" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); + $find[$i++] = array("count" => $count, "title" => $title, "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "node", "type" => "node", "op" => "edit", "id" => $lno), "admin") : drupal_url(array("id" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); break; case "comment": - $find[$i++] = array("count" => $count, "title" => check_output($title), "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "comment", "op" => "edit", "id" =>$lno), "admin") : drupal_url(array("id" => $nid, "cid" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); + $find[$i++] = array("count" => $count, "title" => $title, "link" => (strstr($PHP_SELF, "admin.php") ? drupal_url(array("mod" => "comment", "op" => "edit", "id" =>$lno), "admin") : drupal_url(array("id" => $nid, "cid" => $lno))), "user" => $name, "date" => $created, "keywords" => implode("|", $words)); break; } } diff --git a/modules/statistics.module b/modules/statistics.module index ff3eb87a2..ec27e9eaf 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -427,7 +427,7 @@ function statistics_recent_refer($nid = 0) { $header = array(t("URL"), t("date")); while ($referrer = db_fetch_array($result)) { - $rows[] = array("". substr(check_output($referrer["url"]), 0, 100) ."", format_date($referrer["timestamp"], "small")); + $rows[] = array("". substr($referrer["url"], 0, 100) ."", format_date($referrer["timestamp"], "small")); } $output .= table($header, $rows); @@ -479,7 +479,7 @@ function statistics_top_refer($nid = 0) { $header = array(t("URL"), t("count")); while ($referrer = db_fetch_array($result)) { - $rows[] = array("". substr(check_output($referrer["url"]), 0, 100) ."", $referrer["count"]); + $rows[] = array("". substr($referrer["url"], 0, 100) ."", $referrer["count"]); } $output .= table($header, $rows); @@ -889,7 +889,7 @@ function statistics_summary($dbfield, $dbrows) { $links = link_node($content, 1); $output .= "
    ". l($nid["title"], array("id" => $nid["nid"]), "node", "", array("title" => t("View this posting."))) ."". t("Submitted by %a on %b", array("%a" => format_name($content), "%b" => format_date($content->created, "large"))) ."
    ". check_output($content->teaser, 1) ."
    ". check_output($content->teaser) ."
    [ ". $theme->links($links) ." ]

    ". l($nid["title"], array("id" => $nid["nid"]), "node", "", array("title" => t("View this posting."))) ."". t("Submitted by %a on %b", array("%a" => format_name($content), "%b" => format_date($content->created, "large"))) ."
    ". check_output($content->teaser, 1) ."
    ". check_output($content->teaser) ."
    [ ". $theme->links($links) ." ]

    "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; $output .= "
    " . t("Type") . ":" . "". check_output($watchdog->type) ."
    " . t("Date") . ":" . "". format_date($watchdog->timestamp, "large") ."
    " . t("User") . ":" . "". format_name($watchdog) ."
    " . t("Location") . ":" . "". check_output($watchdog->location) ."
    " . t("Message") . ":" . "". check_output($watchdog->message) ."
    " . t("Hostname") . ":" . "". check_output($watchdog->hostname) ."
    ". t("Type") ."$watchdog->type
    ". t("Date") ."". format_date($watchdog->timestamp, "large") ."
    ". t("User") ."". format_name($watchdog) ."
    ". t("Location") ."$watchdog->location
    ". t("Message") ."$watchdog->message
    ". t("Hostname") ."$watchdog->hostname
    "; return $output; diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index 5fef79158..396351953 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -71,12 +71,12 @@ function watchdog_view($id) { if ($watchdog = db_fetch_object($result)) { $output .= ""; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; - $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; $output .= "
    " . t("Type") . ":" . "". check_output($watchdog->type) ."
    " . t("Date") . ":" . "". format_date($watchdog->timestamp, "large") ."
    " . t("User") . ":" . "". format_name($watchdog) ."
    " . t("Location") . ":" . "". check_output($watchdog->location) ."
    " . t("Message") . ":" . "". check_output($watchdog->message) ."
    " . t("Hostname") . ":" . "". check_output($watchdog->hostname) ."
    ". t("Type") ."$watchdog->type
    ". t("Date") ."". format_date($watchdog->timestamp, "large") ."
    ". t("User") ."". format_name($watchdog) ."
    ". t("Location") ."$watchdog->location
    ". t("Message") ."$watchdog->message
    ". t("Hostname") ."$watchdog->hostname
    "; return $output; -- cgit v1.2.3