diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-22 09:05:36 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-04-22 09:05:36 +0000 |
commit | de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8 (patch) | |
tree | 8b0aa9828f941161183b27e74b6fdc0a167e0021 /includes/common.inc | |
parent | 5b5551674d3721cee39c21dd6843700315521f91 (diff) | |
download | brdo-de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8.tar.gz brdo-de5b9a168daeef12b6f7bcf6e43b767a2d7f35d8.tar.bz2 |
- 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.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 15 |
1 files changed, 8 insertions, 7 deletions
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 .= "<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); + return form_item($title, "<select name=\"edit[$name]". ($multiple ? "[]" : "") ."\"". ($multiple ? " multiple " : "") . ($extra ? " $extra" : "") .">$select</select>", $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 "<a href=\"".drupal_url($args, $script)."\" title=\"$title\">$linktext</a>"; + return "<a href=\"". drupal_url($args, $script) ."\" title=\"$title\">$linktext</a>"; } function la($linktext, $args = array(), $title = "") { // we don't call l() to avoid another duplication of the array - return "<a href=\"".drupal_url($args, "admin")."\" title=\"$title\">$linktext</a>"; + return "<a href=\"". drupal_url($args, "admin") ."\" title=\"$title\">$linktext</a>"; } function lm($linktext, $args = array(), $title = "") { // we don't call l() to avoid another duplication of the array - return "<a href=\"".drupal_url($args, "module")."\" title=\"$title\">$linktext</a>"; + return "<a href=\"". drupal_url($args, "module") ."\" title=\"$title\">$linktext</a>"; } function field_get($string, $name) { |