summaryrefslogtreecommitdiff
path: root/includes/helper
diff options
context:
space:
mode:
Diffstat (limited to 'includes/helper')
-rw-r--r--includes/helper/email_helper.php6
-rw-r--r--includes/helper/internationalization_helper.php8
-rw-r--r--includes/helper/message_helper.php10
3 files changed, 12 insertions, 12 deletions
diff --git a/includes/helper/email_helper.php b/includes/helper/email_helper.php
index 18203ecb..a2e25269 100644
--- a/includes/helper/email_helper.php
+++ b/includes/helper/email_helper.php
@@ -17,10 +17,10 @@ function engelsystem_email_to_user($recipient_user, $title, $message, $not_if_it
gettext_locale($recipient_user['Sprache']);
- $message = sprintf(_("Hi %s,"), $recipient_user['Nick']) . "\n\n"
- . _("here is a message for you from the engelsystem:") . "\n\n"
+ $message = sprintf(_('Hi %s,'), $recipient_user['Nick']) . "\n\n"
+ . _('here is a message for you from the engelsystem:') . "\n\n"
. $message . "\n\n"
- . _("This email is autogenerated and has not to be signed. You got this email because you are registered in the engelsystem.");
+ . _('This email is autogenerated and has not to be signed. You got this email because you are registered in the engelsystem.');
gettext_locale();
diff --git a/includes/helper/internationalization_helper.php b/includes/helper/internationalization_helper.php
index ee9339e2..7c04ebbd 100644
--- a/includes/helper/internationalization_helper.php
+++ b/includes/helper/internationalization_helper.php
@@ -1,7 +1,7 @@
<?php
$locales = [
- 'de_DE.UTF-8' => "Deutsch",
- 'en_US.UTF-8' => "English"
+ 'de_DE.UTF-8' => 'Deutsch',
+ 'en_US.UTF-8' => 'English'
];
$default_locale = 'en_US.UTF-8';
@@ -68,12 +68,12 @@ function gettext_locale($locale = null)
function make_langselect()
{
global $locales;
- $URL = $_SERVER["REQUEST_URI"] . (strpos($_SERVER["REQUEST_URI"], "?") > 0 ? '&' : '?') . "set_locale=";
+ $url = $_SERVER['REQUEST_URI'] . (strpos($_SERVER['REQUEST_URI'], '?') > 0 ? '&' : '?') . 'set_locale=';
$items = [];
foreach ($locales as $locale => $name) {
$items[] = toolbar_item_link(
- htmlspecialchars($URL) . $locale,
+ htmlspecialchars($url) . $locale,
'',
'<img src="pic/flag/' . $locale . '.png" alt="' . $name . '" title="' . $name . '"> ' . $name
);
diff --git a/includes/helper/message_helper.php b/includes/helper/message_helper.php
index 613ac32e..1f429c27 100644
--- a/includes/helper/message_helper.php
+++ b/includes/helper/message_helper.php
@@ -8,10 +8,10 @@
function msg()
{
if (!isset($_SESSION['msg'])) {
- return "";
+ return '';
}
$msg = $_SESSION['msg'];
- $_SESSION['msg'] = "";
+ $_SESSION['msg'] = '';
return $msg;
}
@@ -62,14 +62,14 @@ function success($msg, $immediately = false)
function alert($class, $msg, $immediately = false)
{
if ($immediately) {
- if ($msg == "") {
- return "";
+ if ($msg == '') {
+ return '';
}
return '<div class="alert alert-' . $class . '">' . $msg . '</div>';
}
if (!isset($_SESSION['msg'])) {
- $_SESSION['msg'] = "";
+ $_SESSION['msg'] = '';
}
$_SESSION['msg'] .= alert($class, $msg, true);