diff options
Diffstat (limited to 'server/src/templatelist.cc')
-rw-r--r-- | server/src/templatelist.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/templatelist.cc b/server/src/templatelist.cc index b8e8462..af03586 100644 --- a/server/src/templatelist.cc +++ b/server/src/templatelist.cc @@ -39,6 +39,11 @@ TemplateList::TemplateList(std::string path) void TemplateList::addFile(std::string file) { + if(file.substr(file.size() - 4) != ".xml") { + PRACRO_DEBUG(templatelist, "Skipping file: %s\n", file.c_str()); + return; + } + PRACRO_DEBUG(templatelist, "Adding file: %s\n", file.c_str()); TemplateHeaderParser parser(file); try { |