Commit 52619393 authored by jan.koester's avatar jan.koester
Browse files

test

parent 9abe3491
Loading
Loading
Loading
Loading
+3 −5
Changes for src/theme.cpp: 3 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -212,11 +212,10 @@ void blogi::Theme::renderPage(const int tid,const char *name,libhtmlpp::HtmlPage
        {"LOGO_HEIGHT", "auto"},
    };

    // Load site title from DB options (fallback to "Blogi")
    // Load site title from DB options
    {
        std::string siteTitle = "Blogi";
        std::string siteTitle;
        try { getConfig(*_Config.TDatabase[tid], "SITE_TITLE", siteTitle); } catch (...) {}
        if (siteTitle.empty()) siteTitle = "Blogi";
        variable_map["SITE_TITLE"] = std::move(siteTitle);
    }

@@ -765,9 +764,8 @@ json_object* blogi::Theme::SettingsTheme(const int tid, libhttppp::HttpRequest &

        // Site Title
        {
            std::string curTitle = "Blogi";
            std::string curTitle;
            try { getConfig(*_Config.TDatabase[tid], "SITE_TITLE", curTitle); } catch (...) {}
            if (curTitle.empty()) curTitle = "Blogi";

            json_object *jf = json_object_new_object();
            json_object_object_add(jf, "name", json_object_new_string("site_title"));