void
-find_session_templates (vector<TemplateInfo>& template_names)
+find_session_templates (vector<TemplateInfo>& template_names, bool read_xml)
{
vector<string> templates;
for (vector<string>::iterator i = templates.begin(); i != templates.end(); ++i) {
string file = session_template_dir_to_file (*i);
- XMLTree tree;
-
- if (!tree.read (file.c_str())) {
- continue;
+ if (read_xml) {
+ XMLTree tree;
+ if (!tree.read (file.c_str())) {
+ continue;
+ }
}
TemplateInfo rti;