From 8043cb998f3325731bfab8d82251fa49639aec1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Apr 2002 11:52:50 +0000 Subject: - Applied Marco's big patch, including contributions from Moshe: + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ... --- modules/archive/archive.module | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/archive') diff --git a/modules/archive/archive.module b/modules/archive/archive.module index 0f5368c2f..7dbe4eda0 100644 --- a/modules/archive/archive.module +++ b/modules/archive/archive.module @@ -33,7 +33,7 @@ function archive_display($original = 0) { // Generate calendar header: $output .= "\n\n"; $output .= "\n"; - $output .= " \n"; + $output .= " \n"; // Generate the days of the week: $somesunday = mktime(0, 0, 0, 3, 20, 1994); @@ -71,7 +71,8 @@ function archive_display($original = 0) { $output .= " \n"; } else { - $output .= " \n"; + // due to text-decoration we use drupal_url() instead of lm() + $output .= " \n"; } // Start every week on a new line: @@ -108,7 +109,7 @@ function archive_block() { function archive_link($type) { if ($type == "page" && user_access("access content")) { - $links[] = "archives"; + $links[] = lm(t("archives"), array("mod" => "archive"), t("Read the older content in our archive.")); } return $links ? $links : array(); @@ -156,7 +157,7 @@ function archive_page() { ** selected. */ - $result = db_query("SELECT nid FROM node WHERE status = '1' AND created > ". ($date > 0 ? check_input($date) : time()) ." ORDER BY created LIMIT 20"); + $result = db_query("SELECT nid FROM node WHERE status = '1' AND created > ". ($date > 0 ? check_query($date) : time()) ." ORDER BY created LIMIT 20"); while ($nid = db_fetch_object($result)) { node_view(node_load(array("nid" => $nid->nid)), 1); -- cgit v1.2.3
<   ". date("F Y", $original) ."   " . ($next <= $thislast ? ">" : ">") . "
".lm("<", array("mod" => "archive", "date" => $prev))."   ". date("F Y", $original) ."   " . ($next <= $thislast ? lm(">", array("mod" => "archive", "date" => $next)) : ">") . "
$nday$nday "archive", "date" => $date), "module")." \" style=\"text-decoration: none;\">$nday