From b8127a29c56143337a292d20d79be40101a1f869 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Sun, 26 Nov 2006 23:53:20 +0000 Subject: #97995 by chx. Only make menu items when the path is correct. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 2d53b87e9..17025b031 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -105,7 +105,7 @@ function taxonomy_menu($may_cache) { 'type' => MENU_CALLBACK); } else { - if (is_numeric(arg(3))) { + if (arg(0) == 'admin' && arg(1) == 'content' && arg(2) == 'taxonomy' && is_numeric(arg(3))) { $vid = arg(3); $items[] = array('path' => 'admin/content/taxonomy/'. $vid, 'title' => t('List terms'), -- cgit v1.2.3