Loading src/blogi.cpp +18 −0 Changes for src/blogi.cpp: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2195,6 +2195,24 @@ RETRY_REQUEST: { libhtmlpp::HtmlString out; // Run plugin Rendering() to populate navbar, templates, etc. for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){ try { if(mobile) curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,""); else curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Desktop,""); } catch(libhtmlpp::HTMLException &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(...) { std::cerr << "/render: plugin Rendering unknown error" << std::endl; } } // Inject the editor HTML into main libhtmlpp::HtmlElement *root = index.getElementbyID("main"); if(!root){ Loading Loading
src/blogi.cpp +18 −0 Changes for src/blogi.cpp: 18 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -2195,6 +2195,24 @@ RETRY_REQUEST: { libhtmlpp::HtmlString out; // Run plugin Rendering() to populate navbar, templates, etc. for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){ try { if(mobile) curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,""); else curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Desktop,""); } catch(libhtmlpp::HTMLException &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(const std::exception &e) { std::cerr << "/render: plugin Rendering error: " << e.what() << std::endl; } catch(...) { std::cerr << "/render: plugin Rendering unknown error" << std::endl; } } // Inject the editor HTML into main libhtmlpp::HtmlElement *root = index.getElementbyID("main"); if(!root){ Loading