summaryrefslogtreecommitdiff
path: root/includes/helper
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2016-09-30 17:08:20 +0200
committermsquare <msquare@notrademark.de>2016-09-30 17:08:20 +0200
commit3738d071f86aa5016ce326a009a278085b41fb48 (patch)
tree4471faa1cde6985cdef4aa214994977a1534d13f /includes/helper
parent1debe567f5f9fdeff5a2afbaa4619992da67f437 (diff)
remove long array syntax
Diffstat (limited to 'includes/helper')
-rw-r--r--includes/helper/internationalization_helper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/helper/internationalization_helper.php b/includes/helper/internationalization_helper.php
index 1f4f3558..60451197 100644
--- a/includes/helper/internationalization_helper.php
+++ b/includes/helper/internationalization_helper.php
@@ -1,8 +1,8 @@
<?php
-$locales = array(
+$locales = [
'de_DE.UTF-8' => "Deutsch",
'en_US.UTF-8' => "English"
-);
+];
$default_locale = 'en_US.UTF-8';
@@ -61,7 +61,7 @@ function make_langselect() {
global $locales;
$URL = $_SERVER["REQUEST_URI"] . (strpos($_SERVER["REQUEST_URI"], "?") > 0 ? '&' : '?') . "set_locale=";
- $items = array();
+ $items = [];
foreach ($locales as $locale => $name) {
$items[] = toolbar_item_link(htmlspecialchars($URL) . $locale, '', '<img src="pic/flag/' . $locale . '.png" alt="' . $name . '" title="' . $name . '"> ' . $name);
}