Skip to content
Snippets Groups Projects
Commit 45b0040e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #219366 by pwolanin: cannot add external links to admin interface.

parent a2d870ba
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -618,9 +618,9 @@ function system_admin_menu_block($item) { ...@@ -618,9 +618,9 @@ function system_admin_menu_block($item) {
$item += db_fetch_array(db_query("SELECT mlid, menu_name FROM {menu_links} ml WHERE ml.router_path = '%s' AND module = 'system'", $item['path'])); $item += db_fetch_array(db_query("SELECT mlid, menu_name FROM {menu_links} ml WHERE ml.router_path = '%s' AND module = 'system'", $item['path']));
} }
$result = db_query(" $result = db_query("
SELECT m.*, ml.* SELECT m.load_functions, m.to_arg_functions, m.access_callback, m.access_arguments, m.page_callback, m.page_arguments, m.title, m.title_callback, m.title_arguments, m.type, m.description, ml.*
FROM {menu_links} ml FROM {menu_links} ml
INNER JOIN {menu_router} m ON ml.router_path = m.path LEFT JOIN {menu_router} m ON ml.router_path = m.path
WHERE ml.plid = %d AND ml.menu_name = '%s' AND hidden = 0", $item['mlid'], $item['menu_name']); WHERE ml.plid = %d AND ml.menu_name = '%s' AND hidden = 0", $item['mlid'], $item['menu_name']);
while ($item = db_fetch_array($result)) { while ($item = db_fetch_array($result)) {
_menu_link_translate($item); _menu_link_translate($item);
......
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