From 80f34e5ab0c7b08e409fad2c6d148fa933423ce3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 29 Dec 2003 17:14:27 +0000 Subject: - XHTML improvements: -> . Patch by Stefan. --- includes/common.inc | 6 +++--- includes/xmlrpc.inc | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 5195c525f..87e28f961 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -289,7 +289,7 @@ function search_item($item, $type) { $output = module_invoke($type, "search_item", $item); } else { - $output = " ". $item["title"] ."
"; + $output = " ". $item["title"] ."
"; $output .= " " . t($type) . ($item["user"] ? " - ". $item["user"] : "") ."". ($item["date"] ? " - ". format_date($item["date"], "small") : "") .""; $output .= "

"; } @@ -344,10 +344,10 @@ function search_data($keys = NULL) { foreach (module_list() as $name) { if (module_hook($name, "search") && (!$edit["type"] || $edit["type"][$name]) && ($result = module_invoke($name, "search", $keys))) { if ($name == "node" || $name == "comment") { - $output .= "

". t("Matching ". $name ."s ranked in order of relevance") .":

"; + $output .= "

". t("Matching %names ranked in order of relevance:", array("%name" => $name)) ."

"; } else { - $output .= "

". t("Matching ". $name ."s") .":

"; + $output .= "

". t("Matching ". $name .") .":

"; } foreach ($result as $entry) { $output .= search_item($entry, $name); diff --git a/includes/xmlrpc.inc b/includes/xmlrpc.inc index d8e863248..a552b084d 100644 --- a/includes/xmlrpc.inc +++ b/includes/xmlrpc.inc @@ -1,4 +1,4 @@ - // $Id$ @@ -753,12 +753,12 @@ class xmlrpcval { global $xmlrpcTypes, $xmlrpcBoolean; if ($this->mytype==1) { - echo "xmlrpcval: scalar can have only one value
"; + echo "xmlrpcval: scalar can have only one value
"; return 0; } $typeof=$xmlrpcTypes[$type]; if ($typeof!=1) { - echo "xmlrpcval: not a scalar type (${typeof})
"; + echo "xmlrpcval: not a scalar type (${typeof})
"; return 0; } @@ -788,7 +788,7 @@ class xmlrpcval { function addArray($vals) { global $xmlrpcTypes; if ($this->mytype!=0) { - echo "xmlrpcval: already initialized as a [" . + echo "xmlrpcval: already initialized as a [" . $this->kindOf() . "]
"; return 0; } @@ -801,7 +801,7 @@ class xmlrpcval { function addStruct($vals) { global $xmlrpcTypes; if ($this->mytype!=0) { - echo "xmlrpcval: already initialized as a [" . + echo "xmlrpcval: already initialized as a [" . $this->kindOf() . "]
"; return 0; } -- cgit v1.2.3