Index: openacs.org-dev/packages/cms/www/modules/items/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/packages/cms/www/modules/items/index.tcl,v diff -u -r1.1.1.1 -r1.1.1.2 --- openacs.org-dev/packages/cms/www/modules/items/index.tcl 9 Jul 2002 17:35:03 -0000 1.1.1.1 +++ openacs.org-dev/packages/cms/www/modules/items/index.tcl 8 Oct 2002 15:47:02 -0000 1.1.1.2 @@ -24,9 +24,7 @@ # resolve any symlinks -template::query get_item_id resolved_item_id onevalue " - select content_symlink.resolve(:item_id) from dual -" -cache "symlink_resolve $item_id" -persistent +set resolved_item_id [db_string get_item_id ""] set item_id $resolved_item_id @@ -36,17 +34,9 @@ -return_url "modules/sitemap/index" # query the content_type of the item ID so we can check for a custom info page -template::query get_info info onerow " - select - content_type, latest_revision - from - cr_items - where - item_id = :item_id" - +db_1row get_info "" -column_array info template::util::array_to_vars info - # build the path to the custom interface directory for this content type set custom_dir [file dirname [ns_conn url]]/custom/$content_type