1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 13:53:13 +02:00

Allow using absolute paths in more places.

This commit is contained in:
Sadie Powell
2024-03-19 15:10:25 +00:00
parent 1575dea5b9
commit fde3438ef2
13 changed files with 69 additions and 27 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ public:
Configuration::Block *block = Config->GetModule(this);
provider_name = block->Get<const Anope::string>("server", "httpd/main");
template_name = block->Get<const Anope::string>("template", "default");
template_base = Anope::DataDir + "/modules/webcpanel/templates/" + template_name;
template_base = Anope::ExpandData("modules/webcpanel/templates/" + template_name);
page_title = block->Get<const Anope::string>("title", "Anope IRC Services");
provider = ServiceReference<HTTPProvider>("HTTPProvider", provider_name);