summaryrefslogtreecommitdiff
path: root/Mailman/HTMLFormatter.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/HTMLFormatter.py')
-rw-r--r--Mailman/HTMLFormatter.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py
index d234c0b1b..c47c6c998 100644
--- a/Mailman/HTMLFormatter.py
+++ b/Mailman/HTMLFormatter.py
@@ -29,8 +29,11 @@ from htmlformat import *
class HTMLFormatter:
def InitTempVars(self):
- self._template_dir = os.path.join(mm_cfg.TEMPLATE_DIR,
- self._internal_name)
+ if self._internal_name:
+ self._template_dir = os.path.join(mm_cfg.TEMPLATE_DIR,
+ self._internal_name)
+ else:
+ self._template_dir = mm_cfg.TEMPLATE_DIR
def GetMailmanFooter(self):
owners_html = Container()