diff --git a/modules/node/node.module b/modules/node/node.module index 2398911f23062faeaae9b4d4dd21998572cbfeb3..cc759d5d875b90a7ccd0d8c535b530e921b9aef0 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -911,7 +911,7 @@ function node_menu($may_cache) { 'type' => MENU_LOCAL_TASK); } } - else if (arg(0) == 'admin' && arg(1) == 'settings' && arg(2) == 'content-types' && is_string(arg(3))) { + else if (arg(0) == 'admin' && arg(1) == 'content' && arg(2) == 'types' && is_string(arg(3))) { $items[] = array('path' => 'admin/content/types/'. arg(3), 'title' => t("'%name' content type", array('%name' => node_get_name(arg(3)))), 'type' => MENU_CALLBACK); diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index ee72e79eca3f5d5bb5dabf0a1c0853b6c4a397a6..ddf308edfcd6e7087f2674656ad8d3fa0290777f 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -104,23 +104,23 @@ function taxonomy_menu($may_cache) { 'type' => MENU_CALLBACK); } else { - if (is_numeric(arg(2))) { - $items[] = array('path' => 'admin/content/taxonomy/' . arg(2), + if (is_numeric(arg(3))) { + $items[] = array('path' => 'admin/content/taxonomy/' . arg(3), 'title' => t('list terms'), 'callback' => 'taxonomy_overview_terms', - 'callback arguments' => array(arg(2)), + 'callback arguments' => array(arg(3)), 'access' => user_access('administer taxonomy'), 'type' => MENU_CALLBACK); - $items[] = array('path' => 'admin/content/taxonomy/' . arg(2) . '/list', + $items[] = array('path' => 'admin/content/taxonomy/' . arg(3) . '/list', 'title' => t('list'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10); - $items[] = array('path' => 'admin/content/taxonomy/' . arg(2) . '/add/term', + $items[] = array('path' => 'admin/content/taxonomy/' . arg(3) . '/add/term', 'title' => t('add term'), 'callback' => 'taxonomy_form_term', - 'callback arguments' => array(array('vid' => arg(2))), + 'callback arguments' => array(array('vid' => arg(3))), 'access' => user_access('administer taxonomy'), 'type' => MENU_LOCAL_TASK); }