Skip to content
Snippets Groups Projects
Commit 893ae11d authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

don't relocate content modules administration to the end in responsive navigation, fixes #4422

Closes #4422

Merge request studip/studip!3278
parent f42f6878
No related branches found
No related tags found
No related merge requests found
...@@ -281,20 +281,6 @@ class ResponsiveHelper ...@@ -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; return $result;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment