Commit 710938aa authored by jan.koester's avatar jan.koester
Browse files

test

parent f28f78fb
Loading
Loading
Loading
Loading
+2 −9
Changes for src/blogi.cpp: 2 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -2213,12 +2213,8 @@ RETRY_REQUEST:
                {
                    libhtmlpp::HtmlString out;

                    // Run plugin Rendering() for UI plugins (navbar, gtm, etc.)
                    // Skip content/publish plugins (template, staticpage, content) — they add
                    // footer/page chrome that would duplicate what printSite() already provides.
                    // Run plugin Rendering() for all plugins (navbar, gtm, template, etc.)
                    for(const blogi::Plugin::PluginData *curplg=BlogiPlg->getFirstPlugin(); curplg; curplg=curplg->getNextPlg()){
                        if(curplg->getInstace()->canPublish())
                            continue;
                        try {
                            if(mobile)
                                curplg->getInstace()->Rendering(tid,curreq,&index,RenderingType::Mobile,"");
@@ -2283,10 +2279,7 @@ RETRY_REQUEST:
                        }
                    }

                    // For the editor preview, skip printSite() (which appends footer links)
                    // and just inject theme colors + serialize directly.
                    PlgArgs->theme->injectThemeColors(tid, &index);
                    libhtmlpp::print(index, out);
                    PlgArgs->theme->printSite(tid,out,&index,curreq.getRequestURL(),true);

                    libhttppp::HttpResponse curres;
                    curres.setState(HTTP200);