From 86552cb4b6a83dc218ea0164ddb7c9670f224ddb Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 11 May 2002 16:21:48 +0000 Subject: - changed block, module and theme config pages to use checkboxes. - coding style clean ups. - fixed taxonomy causing errors. --- includes/common.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 96306986d..b926d716a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -96,7 +96,7 @@ function request_uri() { return $REQUEST_URI; } else { - return $PATH_INFO . "?" . $QUERY_STRING; + return $PATH_INFO ."?". $QUERY_STRING; } } @@ -420,7 +420,7 @@ function format_rss_channel($title, $link, $description, $items, $language = "en $output .= " ". htmlentities($description) ."\n"; $output .= " ". htmlentities(strip_tags($language)) ."\n"; foreach ($args as $key => $value) { - $output .= "<$key>" . htmlentities(strip_tags($value)) . ""; + $output .= "<$key>". htmlentities(strip_tags($value)) .""; } $output .= $items; $output .= "\n"; @@ -436,7 +436,7 @@ function format_rss_item($title, $link, $description, $args = array()) { $output .= " ". htmlentities(strip_tags($link)) ."\n"; $output .= " ". htmlentities($description) ."\n"; foreach ($args as $key => $value) { - $output .= "<$key>" . htmlentities(strip_tags($value)) . ""; + $output .= "<$key>". htmlentities(strip_tags($value)) .""; } $output .= "\n"; @@ -509,7 +509,7 @@ function page_get_cache() { function format_interval($timestamp) { $units = array("year|years" => 31536000, "week|weeks" => 604800, "day|days" => 86400, "hour|hours" => 3600, "min|min" => 60, "sec|sec" => 1); - foreach ($units as $key=>$value) { + foreach ($units as $key => $value) { $key = explode("|", $key); if ($timestamp >= $value) { $output .= ($output ? " " : "") . format_plural(floor($timestamp / $value), $key[0], $key[1]); @@ -543,7 +543,7 @@ function format_date($timestamp, $type = "medium", $format = "") { $date = date($c, $timestamp).$date; } else { - $date = $c.$date; + $date = $c . $date; } } break; @@ -610,7 +610,7 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = 0) { function form_select($title, $name, $value, $options, $description = 0, $extra = 0, $multiple = 0) { if (count($options) > 0) { - foreach ($options as $key=>$choice) { + foreach ($options as $key => $choice) { $select .= ""; } return form_item($title, "", $description); -- cgit v1.2.3