From de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 22 Apr 2002 09:05:36 +0000 Subject: - bug fixes: * fixed mails not being parsed properly. * tracker now shows user name when you view your own recent comments. * link to submission queue now points to the right place. * fixed jabber module. * theme is now activated when changed. - applied Gerhards coding style patch. --- includes/common.inc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 99b4c36bc..881cb06cd 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -117,7 +117,8 @@ function t($string, $args = 0) { global $languages; if (!$args) { return $string; - } else { + } + else { return strtr($string, $args); } } @@ -582,7 +583,7 @@ function form_select($title, $name, $value, $options, $description = 0, $extra = foreach ($options as $key=>$choice) { $select .= ""; } - return form_item($title, "", $description); + return form_item($title, "", $description); } } @@ -607,10 +608,10 @@ function form_submit($value) { */ function drupal_url($args = array(), $script = "node") { $t = array(); - foreach($args as $k => $v) { + foreach ($args as $k => $v) { $t[] = "$k=$v"; } - return "$script.php?".implode("&", $t); + return "$script.php?". implode("&", $t); } /** @@ -623,17 +624,17 @@ function drupal_url($args = array(), $script = "node") { * @param $script script to be invoked; optional, defaults to node */ function l($linktext, $args = array(), $title = "", $script = "node") { - return "$linktext"; + return "$linktext"; } function la($linktext, $args = array(), $title = "") { // we don't call l() to avoid another duplication of the array - return "$linktext"; + return "$linktext"; } function lm($linktext, $args = array(), $title = "") { // we don't call l() to avoid another duplication of the array - return "$linktext"; + return "$linktext"; } function field_get($string, $name) { -- cgit v1.2.3