diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-09-17 18:08:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-09-17 18:08:28 +0000 |
commit | 3ffde628c54cc24ec7855001e9f4d89d80097a5d (patch) | |
tree | 84114fc5f98b0baf4270d9915941f3a54fedbbc3 /modules/legacy.module | |
parent | 2f0221e9dd3436bff6ab0a37740913d4e951fbfa (diff) | |
download | brdo-3ffde628c54cc24ec7855001e9f4d89d80097a5d.tar.gz brdo-3ffde628c54cc24ec7855001e9f4d89d80097a5d.tar.bz2 |
- Patch #8179 by JonBob: the legacy handlers and file upload previews were mistakenly cached when they cannot be. Attached patch fixes this as well as a reference to an undefined constant in legacy_menu().
Diffstat (limited to 'modules/legacy.module')
-rw-r--r-- | modules/legacy.module | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/modules/legacy.module b/modules/legacy.module index 52348c61c..39ffc8b8c 100644 --- a/modules/legacy.module +++ b/modules/legacy.module @@ -25,6 +25,17 @@ function legacy_menu($may_cache) { $items = array(); if ($may_cache) { + // Map "taxonomy/page/or/52,97" to "taxonomy/term/52+97". + $items[] = array('path' => 'taxonomy/page', 'title' => t('taxonomy'), + 'callback' => 'legacy_taxonomy_page', + 'access' => TRUE, 'type' => MENU_CALLBACK); + + // Map "taxonomy/feed/or/52,97" to "taxonomy/term/52+97/0/feed". + $items[] = array('path' => 'taxonomy/feed', 'title' => t('taxonomy'), + 'callback' => 'legacy_taxonomy_feed', + 'access' => TRUE, 'type' => MENU_CALLBACK); + } + else { // Map "node/view/52" to "node/52". $items[] = array('path' => 'node/view', 'title' => t('view'), 'callback' => 'drupal_goto', @@ -42,16 +53,6 @@ function legacy_menu($may_cache) { 'callback' => 'drupal_goto', 'callback arguments' => array('user/'. arg(2), NULL, NULL), 'access' => TRUE, 'type' => MENU_CALLBACK); - - // Map "taxonomy/page/or/52,97" to "taxonomy/term/52+97". - $items[] = array('path' => 'taxonomy/page', 'title' => t('taxonomy'), - 'callback' => 'legacy_taxonomy_page', - 'access' => TRUE, 'type' => MENU_CALLBACK); - - // Map "taxonomy/feed/or/52,97" to "taxonomy/term/52+97/0/feed". - $items[] = array('path' => 'taxonomy/feed', 'title' => t('taxonomy'), - 'callback' => 'legacy_taxonomy_feed', - 'access' => TRUE, 'type' => MENU_CALLBACK); } return $items; |