From 918d41ca70a7ca1fd59785c31fdf6e0bf39470e9 Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 15 Nov 2016 16:31:55 +0100 Subject: reduce complexity of menu and hints --- includes/controller/user_angeltypes_controller.php | 2 +- includes/controller/user_driver_licenses_controller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/controller') diff --git a/includes/controller/user_angeltypes_controller.php b/includes/controller/user_angeltypes_controller.php index 206828f5..6ef894c7 100644 --- a/includes/controller/user_angeltypes_controller.php +++ b/includes/controller/user_angeltypes_controller.php @@ -16,7 +16,7 @@ function user_angeltypes_unconfirmed_hint() { $unconfirmed_links[] = '' . $user_angeltype['name'] . ' (+' . $user_angeltype['count'] . ')' . ''; } - return info(sprintf(ngettext("There is %d unconfirmed angeltype.", "There are %d unconfirmed angeltypes.", count($unconfirmed_user_angeltypes)), count($unconfirmed_user_angeltypes)) . " " . _('Angel types which need approvals:') . ' ' . join(', ', $unconfirmed_links), true); + return sprintf(ngettext("There is %d unconfirmed angeltype.", "There are %d unconfirmed angeltypes.", count($unconfirmed_user_angeltypes)), count($unconfirmed_user_angeltypes)) . " " . _('Angel types which need approvals:') . ' ' . join(', ', $unconfirmed_links); } /** diff --git a/includes/controller/user_driver_licenses_controller.php b/includes/controller/user_driver_licenses_controller.php index fc2f4916..595fc3b6 100644 --- a/includes/controller/user_driver_licenses_controller.php +++ b/includes/controller/user_driver_licenses_controller.php @@ -16,7 +16,7 @@ function user_driver_license_required_hint() { foreach ($angeltypes as $angeltype) { if ($angeltype['requires_driver_license']) { - return info(sprintf(_("You joined an angeltype which requires a driving license. Please edit your driving license information here: %s."), '' . _("driving license information") . ''), true); + return sprintf(_("You joined an angeltype which requires a driving license. Please edit your driving license information here: %s."), '' . _("driving license information") . ''); } } -- cgit v1.2.3-54-g00ecf