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

- Patch #29593 by tostinni: fixed display of title on admin/settings/content-type/ pages.

parent 7b8a4096
No related branches found
No related tags found
No related merge requests found
......@@ -698,9 +698,9 @@ function node_menu($may_cache) {
}
}
}
else if (arg(0) == 'admin' && arg(1) == 'node' && arg(2) == 'configure' && arg(3) == 'types' && is_string(arg(4))) {
$items[] = array('path' => 'admin/settings/content-types/'. arg(4),
'title' => t("'%name' content type", array('%name' => node_invoke(arg(4), 'node_name'))),
else if (arg(0) == 'admin' && arg(1) == 'settings' && arg(2) == 'content-types' && is_string(arg(3))) {
$items[] = array('path' => 'admin/settings/content-types/'. arg(3),
'title' => t("'%name' content type", array('%name' => node_invoke(arg(3), 'node_name'))),
'type' => MENU_CALLBACK);
}
}
......
......@@ -698,9 +698,9 @@ function node_menu($may_cache) {
}
}
}
else if (arg(0) == 'admin' && arg(1) == 'node' && arg(2) == 'configure' && arg(3) == 'types' && is_string(arg(4))) {
$items[] = array('path' => 'admin/settings/content-types/'. arg(4),
'title' => t("'%name' content type", array('%name' => node_invoke(arg(4), 'node_name'))),
else if (arg(0) == 'admin' && arg(1) == 'settings' && arg(2) == 'content-types' && is_string(arg(3))) {
$items[] = array('path' => 'admin/settings/content-types/'. arg(3),
'title' => t("'%name' content type", array('%name' => node_invoke(arg(3), 'node_name'))),
'type' => MENU_CALLBACK);
}
}
......
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