Commit 037d6213 authored by jan.koester's avatar jan.koester
Browse files

test

parent 5567a7a8
Loading
Loading
Loading
Loading
+18 −0
Changes for src/blogi.cpp: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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){