Index: openacs-4/packages/acs-content-repository/www/index.vuh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/www/index.vuh,v diff -u -N -r1.7 -r1.8 --- openacs-4/packages/acs-content-repository/www/index.vuh 23 Feb 2003 18:19:19 -0000 1.7 +++ openacs-4/packages/acs-content-repository/www/index.vuh 7 Jul 2003 12:25:53 -0000 1.8 @@ -11,23 +11,22 @@ } # Get the paths -set the_url [ad_conn path_info] -set package_key [ad_conn package_key] set the_root [ns_info pageroot] +set the_url [ad_conn path_info] +set content_type "" + # Get the IDs -set content_root \ - [db_string content_root "select content_item.get_root_folder from dual"] -set template_root \ - [db_string template_root "select content_template.get_root_folder from dual"] +set content_root [db_string content_root ""] +set template_root [db_string template_root ""] # Serve the page # DRB: Note that content::init modifies the local variable the_root, which is treated # as though it's been passed by reference. This requires that the redirect treat the # path as an absolute path within the filesystem. -if { [content::init the_url the_root $content_root $template_root public $revision_id] } { +if { [content::init the_url the_root $content_root $template_root public $revision_id $content_type] } { set file "$the_root/$the_url" rp_internal_redirect -absolute_path $file } else {