aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-07-25 20:59:25 -0700
committerFriendika <info@friendika.com>2011-07-25 20:59:25 -0700
commit454ff3c7f0a4729dbf9a9dd116325630a193f0fb (patch)
tree7c93cb913663267443736ed98de935a93706ba3e /mod/profiles.php
parent1441fce04eb0a95756661e54cbc22dff2e275c21 (diff)
downloadvolse-hubzilla-454ff3c7f0a4729dbf9a9dd116325630a193f0fb.tar.gz
volse-hubzilla-454ff3c7f0a4729dbf9a9dd116325630a193f0fb.tar.bz2
volse-hubzilla-454ff3c7f0a4729dbf9a9dd116325630a193f0fb.zip
configurable format for date input selectors
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 160ca13bc..64fab797f 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -361,6 +361,9 @@ function profiles_content(&$a) {
$a->page['htmlhead'] .= replace_macros($tpl, array('$baseurl' => $a->get_baseurl()));
$a->page['htmlhead'] .= "<script type=\"text/javascript\" src=\"include/country.js\" ></script>";
+ $f = get_config('system','birthday_input_format');
+ if(! $f)
+ $f = 'ymd';
$is_default = (($r[0]['is-default']) ? 1 : 0);
$tpl = get_markup_template("profile_edit.tpl");
@@ -375,7 +378,7 @@ function profiles_content(&$a) {
'$lbl_fullname' => t('Your Full Name:'),
'$lbl_title' => t('Title/Description:'),
'$lbl_gender' => t('Your Gender:'),
- '$lbl_bd' => t("Birthday \x28y/m/d\x29:"),
+ '$lbl_bd' => sprintf( t("Birthday \x28%s\x29:"),datesel_format($f)),
'$lbl_address' => t('Street Address:'),
'$lbl_city' => t('Locality/City:'),
'$lbl_zip' => t('Postal/Zip Code:'),