summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-08-02 13:44:07 +0000
committerDries Buytaert <dries@buytaert.net>2006-08-02 13:44:07 +0000
commiteaf354017509ce7f43da89f1ec53986cdca57f2a (patch)
treea60b2954b16ca1d628d5defa8cd325cb42982b2b /modules/taxonomy/taxonomy.module
parentbd5c16ecf4fd9a23de928af65236d18445ff71bc (diff)
downloadbrdo-eaf354017509ce7f43da89f1ec53986cdca57f2a.tar.gz
brdo-eaf354017509ce7f43da89f1ec53986cdca57f2a.tar.bz2
- Patch #76702 by timcn: fixed some broken admin pages.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index ee72e79ec..ddf308edf 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);
}