Commit b5573842 authored by Dries's avatar Dries
Browse files

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

parent 7b8a4096
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment