Index: openacs-4/contrib/packages/portal/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/www/admin/index.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/contrib/packages/portal/www/admin/index.tcl 27 Feb 2004 01:13:17 -0000 1.6 +++ openacs-4/contrib/packages/portal/www/admin/index.tcl 12 Mar 2004 04:54:04 -0000 1.7 @@ -23,22 +23,14 @@ @cvs-id $Id$ } { } +if { ![portal::initialized] } { + ad_returnredirect configure + ad_script_abort +} + set context [list admin] set package_id [ad_conn package_id] -set master_template_id [portal::get_master_template_id -package_id $package_id] -if { [string equal $master_template_id ""] } { - - # The master template for this instance is defined as the portal with no - # party owner. - - set master_template_id [portal::new \ - -party_id "" \ - -party_privileges {} \ - -package_id $package_id] - -} - set edit_portal_template_url \ [export_vars -base ../portal-configure {{referer index} {portal_id $master_template_id}}] db_1row count_uninstalled_applications {}