summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-03-19 15:19:15 +0000
committerSadie Powell <sadie@witchery.services>2024-03-19 15:19:15 +0000
commite488f294a116224d8c7f89c6c4ebad2356ba7814 (patch)
treeb870c1034847bd8825aa910c16b7f3e0805c646d /modules
parentfde3438ef29447f41a6eb48049f8d620c1c2eb30 (diff)
Put the webcpanel directory in the data directory not a subdir.
Diffstat (limited to 'modules')
-rw-r--r--modules/webcpanel/CMakeLists.txt2
-rw-r--r--modules/webcpanel/webcpanel.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/webcpanel/CMakeLists.txt b/modules/webcpanel/CMakeLists.txt
index ea5a03b35..22a9ffc3b 100644
--- a/modules/webcpanel/CMakeLists.txt
+++ b/modules/webcpanel/CMakeLists.txt
@@ -1,5 +1,5 @@
build_subdir(${CMAKE_CURRENT_SOURCE_DIR})
install(DIRECTORY templates
- DESTINATION "${DB_DIR}/modules/webcpanel"
+ DESTINATION "${DB_DIR}/webcpanel"
)
diff --git a/modules/webcpanel/webcpanel.cpp b/modules/webcpanel/webcpanel.cpp
index 0ff4beb1a..8d31e38e3 100644
--- a/modules/webcpanel/webcpanel.cpp
+++ b/modules/webcpanel/webcpanel.cpp
@@ -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::ExpandData("modules/webcpanel/templates/" + template_name);
+ template_base = Anope::ExpandData("webcpanel/templates/" + template_name);
page_title = block->Get<const Anope::string>("title", "Anope IRC Services");
provider = ServiceReference<HTTPProvider>("HTTPProvider", provider_name);