Loading src/theme.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -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()}, Loading Loading @@ -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")); Loading Loading
src/theme.cpp +4 −4 Original line number Diff line number Diff line Loading @@ -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()}, Loading Loading @@ -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")); Loading