summaryrefslogtreecommitdiff
path: root/includes/controller
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-11-15 16:31:55 +0100
committermsquare <msquare@notrademark.de>2016-11-15 16:31:55 +0100
commit918d41ca70a7ca1fd59785c31fdf6e0bf39470e9 (patch)
treee501824b8c69f6a015824e3fd77e6e5cd1c7ffb3 /includes/controller
parentec6016cd38fc5ce6455cace6ffbc703f78f31096 (diff)
reduce complexity of menu and hints
Diffstat (limited to 'includes/controller')
-rw-r--r--includes/controller/user_angeltypes_controller.php2
-rw-r--r--includes/controller/user_driver_licenses_controller.php2
2 files changed, 2 insertions, 2 deletions
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[] = '<a href="' . page_link_to('angeltypes') . '&action=view&angeltype_id=' . $user_angeltype['angeltype_id'] . '">' . $user_angeltype['name'] . ' (+' . $user_angeltype['count'] . ')' . '</a>';
}
- 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."), '<a href="' . user_driver_license_edit_link() . '">' . _("driving license information") . '</a>'), true);
+ return sprintf(_("You joined an angeltype which requires a driving license. Please edit your driving license information here: %s."), '<a href="' . user_driver_license_edit_link() . '">' . _("driving license information") . '</a>');
}
}