Index: openacs-4/packages/ajaxhelper/www/doc/blank-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ajaxhelper/www/doc/blank-master.tcl,v diff -u -N -r1.2 -r1.3 --- openacs-4/packages/ajaxhelper/www/doc/blank-master.tcl 16 Nov 2007 00:36:24 -0000 1.2 +++ openacs-4/packages/ajaxhelper/www/doc/blank-master.tcl 17 Nov 2007 12:02:58 -0000 1.3 @@ -3,7 +3,6 @@ document to be set through convenient data structures without introducing anything site specific. - You MUST supply the following variables: You should NEVER need to modify this file. Most of the time your pages or master templates should not directly set this @@ -64,14 +63,18 @@ set doc(type) {} } +if {![info exists doc(title)]} { + set doc(title) "[ad_conn instance_name]" + ns_log warning "[ad_conn url] has no doc(title) set." +} if {[template::util::is_nil doc(charset)]} { - set doc(charset) [ad_conn charset] + set doc(charset) [ns_config ns/parameters OutputCharset [ad_conn charset]] } # The document language is always set from [ad_conn lang] which by default # returns the language setting for the current user. This is probably # not a bad guess, but the rest of OpenACS must override this setting when -# appropriate and set the lang attribute of tags which differ from the language +# appropriate and set the lang attribxute of tags which differ from the language # of the page. Otherwise we are lying to the browser. set doc(lang) [ad_conn language] @@ -97,6 +100,7 @@ $lang } } + unset metas } # Generate the tag multirow @@ -114,24 +118,27 @@ $media } } + unset links } # Generate the head