summaryrefslogtreecommitdiff
path: root/modules/profile
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-23 13:17:20 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-23 13:17:20 +0000
commite08abdd25259e8a2d8e4986a04e55ecd629f077d (patch)
treee585233eb19a629aa8c104a55b2273672ad5fb35 /modules/profile
parent0d89694edbb2b280a28ed8f538683caddf72f168 (diff)
downloadbrdo-e08abdd25259e8a2d8e4986a04e55ecd629f077d.tar.gz
brdo-e08abdd25259e8a2d8e4986a04e55ecd629f077d.tar.bz2
#194946 by dmitrig01, Pasqualle: christmas cleanup (some code style issues fixed)
Diffstat (limited to 'modules/profile')
-rw-r--r--modules/profile/profile.module16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 297d6c0ab..229dc91b5 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -266,13 +266,15 @@ function profile_view_field($user, $field) {
// Note: Avoid PHP's date() because it does not handle dates before
// 1970 on Windows. This would make the date field useless for e.g.
// birthdays.
- $replace = array('d' => sprintf('%02d', $value['day']),
- 'j' => $value['day'],
- 'm' => sprintf('%02d', $value['month']),
- 'M' => map_month($value['month']),
- 'Y' => $value['year'],
- 'H:i' => NULL,
- 'g:ia' => NULL);
+ $replace = array(
+ 'd' => sprintf('%02d', $value['day']),
+ 'j' => $value['day'],
+ 'm' => sprintf('%02d', $value['month']),
+ 'M' => map_month($value['month']),
+ 'Y' => $value['year'],
+ 'H:i' => NULL,
+ 'g:ia' => NULL,
+ );
return strtr($format, $replace);
case 'list':
$values = split("[,\n\r]", $value);