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

test

parent 23f604aa
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -200,9 +200,9 @@ void blogi::Theme::renderPage(const int tid,const char *name,libhtmlpp::HtmlPage
    // Map of variables to replace in the HTML template
    std::string _lang = getLang(*_Config.TDatabase[tid]);
    // Logo dimensions
    std::string logoWidth = "1280";
    std::string logoWidth = "100";
    try { getConfig(*_Config.TDatabase[tid], "THEME_LOGO_WIDTH", logoWidth); } catch (...) {}
    if (logoWidth.empty()) logoWidth = "1280";
    if (logoWidth.empty()) logoWidth = "100";

    std::map<std::string, std::string> variable_map = {
        {"PREFIX", _Config.config.getprefix()},
@@ -725,9 +725,9 @@ json_object* blogi::Theme::SettingsTheme(const int tid, libhttppp::HttpRequest &
    }
    // Logo width
    {
        std::string curWidth = "1280";
        std::string curWidth = "100";
        try { getConfig(*_Config.TDatabase[tid], "THEME_LOGO_WIDTH", curWidth); } catch (...) {}
        if (curWidth.empty()) curWidth = "1280";
        if (curWidth.empty()) curWidth = "100";

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