Loading src/theme.cpp +3 −5 Changes for src/theme.cpp: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -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); } Loading Loading @@ -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")); Loading Loading
src/theme.cpp +3 −5 Changes for src/theme.cpp: 3 added lines, 5 removed lines. Original line number Diff line number Diff line Loading @@ -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); } Loading Loading @@ -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")); Loading