Index: openacs-4/www/blank-master.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/www/blank-master.tcl,v
diff -u -r1.20.2.13 -r1.20.2.14
--- openacs-4/www/blank-master.tcl 23 Apr 2007 11:10:11 -0000 1.20.2.13
+++ openacs-4/www/blank-master.tcl 25 Aug 2007 20:41:38 -0000 1.20.2.14
@@ -4,7 +4,7 @@
anything site specific.
You MUST supply the following variables:
-
+
@property doc(title) The document title, ie.
tag.
@property doc(title_lang) The language of the document title, if different
from the document language.
@@ -51,14 +51,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]
}
# 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]