diff --git a/administrator/language/en-GB/plg_user_profile.ini b/administrator/language/en-GB/plg_user_profile.ini index a2c2a57c1b375..87ac721e3a13b 100644 --- a/administrator/language/en-GB/plg_user_profile.ini +++ b/administrator/language/en-GB/plg_user_profile.ini @@ -27,5 +27,5 @@ PLG_USER_PROFILE_FILL_FIELD_DESC_SITE="If required, please fill this field." PLG_USER_PROFILE_OPTION_AGREE="Agree" PLG_USER_PROFILE_OPTION_DO_NOT_AGREE="I do not agree" PLG_USER_PROFILE_SLIDER_LABEL="User Profile" -PLG_USER_PROFILE_SPACER_DOB="The date of birth entered should use the format Year-Month-Day, eg 2019-01-27." ; Adapt to the format you entered in the 'DATE_FORMAT_CALENDAR_DATE' +PLG_USER_PROFILE_SPACER_DOB="Format: YYYY-MM-DD" ; Adapt to the format you entered in the 'DATE_FORMAT_CALENDAR_DATE' PLG_USER_PROFILE_XML_DESCRIPTION="User Profile Plugin" diff --git a/layouts/plugins/user/profile/fields/dob.php b/layouts/plugins/user/profile/fields/dob.php index 2aa0f0e429944..76737a135f9ad 100644 --- a/layouts/plugins/user/profile/fields/dob.php +++ b/layouts/plugins/user/profile/fields/dob.php @@ -17,8 +17,6 @@ * @var string $text infotext to be displayed */ -// Closing the opening .control-group and .control-label div so we can add our info text on own line ?> - -
- -
+?> + +
diff --git a/plugins/user/profile/src/Field/DobField.php b/plugins/user/profile/src/Field/DobField.php index 9afcb398c949c..26bb330f78b32 100644 --- a/plugins/user/profile/src/Field/DobField.php +++ b/plugins/user/profile/src/Field/DobField.php @@ -58,7 +58,7 @@ protected function getLabel() { $layout = new FileLayout('plugins.user.profile.fields.dob'); $info = $layout->render(array('text' => $text)); - $label = $info . $label; + $label = $label . $info; } }