Loading plugins/template/template.cpp +4 −0 Changes for plugins/template/template.cpp: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ #include <regex> #include <htmlpp/html.h> #include <htmlpp/exception.h> #include <dbpp/database.h> Loading Loading @@ -433,6 +434,9 @@ namespace blogi { libhtmlpp::HtmlElement *el=curpage->getElementbyID(res[i][1]); if(el) el->appendChild(buf.parse()); } catch(libhtmlpp::HTMLException &e) { std::cerr << "template: Rendering layer '" << res[i][1] << "' HTML error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "template: Rendering layer '" << res[i][1] << "' error: " << e.what() << std::endl; Loading Loading
plugins/template/template.cpp +4 −0 Changes for plugins/template/template.cpp: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -34,6 +34,7 @@ #include <regex> #include <htmlpp/html.h> #include <htmlpp/exception.h> #include <dbpp/database.h> Loading Loading @@ -433,6 +434,9 @@ namespace blogi { libhtmlpp::HtmlElement *el=curpage->getElementbyID(res[i][1]); if(el) el->appendChild(buf.parse()); } catch(libhtmlpp::HTMLException &e) { std::cerr << "template: Rendering layer '" << res[i][1] << "' HTML error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "template: Rendering layer '" << res[i][1] << "' error: " << e.what() << std::endl; Loading