Commit e45b0d38 authored by jan.koester's avatar jan.koester
Browse files

test

parent 38956800
Loading
Loading
Loading
Loading
+14 −4
Original line number Diff line number Diff line
@@ -44,6 +44,9 @@
#include <httppp/http.h>
#include <httppp/exception.h>

#include <htmlpp/html.h>
#include <htmlpp/exception.h>

#include <netplus/exception.h>

#include <confplus/exception.h>
@@ -320,12 +323,19 @@ namespace blogi {

                libhtmlpp::HtmlString fileHtml;

                try{
                    RenderUI(path,ndir,fileHtml);

                    std::string out,sid;
                    if(page.getElementbyID("main"))
                        page.getElementbyID("main")->appendChild(fileHtml.parse());

                }catch(libhtmlpp::HTMLException &e){
                    libhttppp::HTTPException ee;
                    ee[libhttppp::HTTPException::Error] << e.what();
                    throw ee;
                }

                Args->theme->printSite(out,page,req->getRequestURL(),Args->auth->isLoggedIn(req,sid));

                libhttppp::HttpResponse curres;