Setup constants

This commit is contained in:
Matthew Barbour
2019-08-02 14:40:03 -05:00
committed by matthew
parent 5ceb6f4193
commit 972b68bdd3
29 changed files with 66 additions and 55 deletions

View File

@@ -16,7 +16,7 @@ function mtimefile(string $file): string
function get_theme(): string
{
global $config;
$theme = $config->get_string("theme", "default");
$theme = $config->get_string(SetupConfig::THEME, "default");
if (!file_exists("themes/$theme")) {
$theme = "default";
}