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

tets

parent e1371d8c
Loading
Loading
Loading
Loading
+1 −1
Changes for plugins/navbar/navbar.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ namespace blogi {
                sql2.clear();
                if(curpage->getElementbyID(res[i][2])){
                    try{
                        libhtmlpp::Element *el=buf.parse();
                        libhtmlpp::Element &el=buf.parse();
                        curpage->getElementbyID(res[i][2])->appendChild(el);
                    }catch(libhtmlpp::HTMLException &e){
                        libhttppp::HTTPException excep;
+1 −1
Changes for plugins/nginxfiler/filer.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -207,7 +207,7 @@ namespace blogi {

                RenderUI(path,ndir,fileHtml);

                libhtmlpp::HtmlElement fel=(libhtmlpp::HtmlElement*)fileHtml.parse();
                libhtmlpp::HtmlElement fel=(libhtmlpp::HtmlElement*)&fileHtml.parse();

                if(page->getElementbyID("main"))
                    page->getElementbyID("main")->appendChild(fel);
+8 −1
Changes for plugins/staticpage/static.cpp: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
#include <algorithm>

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

#include <conf.h>

@@ -150,7 +151,13 @@ void blogi::StaticPage::newPage(const int tid,libhttppp::HttpRequest& req, libht
        }
    }catch(...){};

    if(!surl.empty() && ( !text.empty() && text.validate(&err) ) ){
    if(!surl.empty() && ( !text.empty()) ){
        try{
            text.parse();
        }catch(libhtmlpp::HTMLException &e){
            std::cerr << e.what() << std::endl;
            return;
        }
        uuid::uuid id;
        id.generate();

+1 −1
Changes for src/theme.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ void blogi::Theme::printSite(const int tid,libhtmlpp::HtmlString &output,libhtml
        if(footernav)
            footernav->appendChild(footerancor.parse());

        libhtmlpp::print(index,output,_Formated);
        libhtmlpp::print(*index,output,_Formated);
    }catch(libhtmlpp::HTMLException &e){
        libhttppp::HTTPException excep;
        excep[libhttppp::HTTPException::Error] << e.what();
+1 −1
Changes for src/webedit/edit.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ void blogi::webedit::WebEditor(PluginArgs &plgars,libhttppp::HttpRequest& curreq

    plgars.theme->renderPage(tid,"editor.html",editpage,edithtml);

    libhtmlpp::print(&edithtml,ouput,false);
    libhtmlpp::print(edithtml,ouput,false);

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