allow to use multiple directories in html and txt templates
remove from the config: templates_dir, templates_dir_default, txt_templates_dir, txt_templates_dir_default add to the config: html_templates_dirs - a list of directories with html templates txt_templates_dirs - a list of directories with txt templates We search from the last directory to the first one.
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
* Author: Tomasz Sowa <t.sowa@ttmath.org>
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008-2024, Tomasz Sowa
|
||||
/*
|
||||
* Copyright (c) 2008-2026, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -97,7 +97,7 @@ bool Notify::Init()
|
||||
if( !thread_manager->Add(¬ify_thread, L"notifications") )
|
||||
return false;
|
||||
|
||||
patterns.SetDirectories(config->txt_templates_dir, config->txt_templates_dir_default);
|
||||
patterns.SetDirectories(config->txt_templates_dirs);
|
||||
patterns.SetLocale(&TemplatesFunctions::locale);
|
||||
patterns.SetLocaleFilter(&TemplatesFunctions::locale_filter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user