summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-11 16:21:48 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-05-11 16:21:48 +0000
commit86552cb4b6a83dc218ea0164ddb7c9670f224ddb (patch)
tree65d981eb5f2d5704e6decedef514fcf083361cc7 /includes
parentc72bf4b5f79297eff699bd6207f0acdb3bfc4e30 (diff)
downloadbrdo-86552cb4b6a83dc218ea0164ddb7c9670f224ddb.tar.gz
brdo-86552cb4b6a83dc218ea0164ddb7c9670f224ddb.tar.bz2
- changed block, module and theme config pages to use checkboxes.
- coding style clean ups. - fixed taxonomy causing errors.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc12
1 files changed, 6 insertions, 6 deletions
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 .= " <description>". htmlentities($description) ."</description>\n";
$output .= " <language>". htmlentities(strip_tags($language)) ."</language>\n";
foreach ($args as $key => $value) {
- $output .= "<$key>" . htmlentities(strip_tags($value)) . "</$key>";
+ $output .= "<$key>". htmlentities(strip_tags($value)) ."</$key>";
}
$output .= $items;
$output .= "</channel>\n";
@@ -436,7 +436,7 @@ function format_rss_item($title, $link, $description, $args = array()) {
$output .= " <link>". htmlentities(strip_tags($link)) ."</link>\n";
$output .= " <description>". htmlentities($description) ."</description>\n";
foreach ($args as $key => $value) {
- $output .= "<$key>" . htmlentities(strip_tags($value)) . "</$key>";
+ $output .= "<$key>". htmlentities(strip_tags($value)) ."</$key>";
}
$output .= "</item>\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 .= "<option value=\"$key\"". (is_array($value) ? (in_array($key, $value) ? " selected=\"selected\"" : "") : ($key == $value ? " selected=\"selected\"" : "")) .">". check_form($choice) ."</option>";
}
return form_item($title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple " : "") . ($extra ? " $extra" : "") .">$select</select>", $description);