aboutsummaryrefslogtreecommitdiff
path: root/lib/classes
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-08-23 13:42:27 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-08-23 13:42:27 +0000
commit893ae11d04f20d6f53675ffbfa15480951bd304a (patch)
tree702a212d2b2a93e60ea940ad8cec4e4da07bde9d /lib/classes
parentf42f687872f4887f557e8dec9226c8a2f318597c (diff)
don't relocate content modules administration to the end in responsive navigation, fixes #4422
Closes #4422 Merge request studip/studip!3278
Diffstat (limited to 'lib/classes')
-rw-r--r--lib/classes/ResponsiveHelper.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/classes/ResponsiveHelper.php b/lib/classes/ResponsiveHelper.php
index f02ee80..afa5005 100644
--- a/lib/classes/ResponsiveHelper.php
+++ b/lib/classes/ResponsiveHelper.php
@@ -281,20 +281,6 @@ class ResponsiveHelper
];
}
- // Move admin page to the end
- if (count($result) > 0) {
- $first_path = array_keys($result)[0];
- if (str_ends_with($first_path, '/admin')) {
- $admin_navigation = array_slice(array_values($result), 0, 1)[0];
- $admin_navigation['title'] = _('Verwaltung');
- $admin_navigation['icon'] = Icon::create('add', Icon::ROLE_INFO_ALT)->asImagePath();
- $result = array_merge(
- array_slice($result, 1),
- [$path_prefix . '/admin' => $admin_navigation]
- );
- }
- }
-
return $result;
}
}