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

api backwards

parent 772732e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ namespace blogi {
            html.insertChild(&table);

            std::string *out=new std::string,sid,*systable=new std::string;
            libhtmlpp::print(&html,&systable);
            libhtmlpp::print(&html,systable);

            libhtmlpp::HtmlString *condat=new libhtmlpp::HtmlString();
            *condat << *systable;
+2 −2
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ RETRY_REQUEST:
                << "</span><br/><a style=\"text-decoration: none; color: rgb(58,212, 58);\" href=\""
                <<  PlgArgs->config->getstartpage()
                << "\" >Zur&uuml;ck zur Startseite</a></body></html>";
                libhtmlpp::print(err.parse(),&output);
                libhtmlpp::print(err.parse(),output);
                libhttppp::HttpResponse resp;
                resp.setVersion(HTTPVERSION(1.1));
                resp.setState(HTTP404);
@@ -382,7 +382,7 @@ RETRY_REQUEST:
        << "</span><br/><a style=\"text-decoration: none; color: rgb(58,212, 58);\" href=\""
        <<  PlgArgs->config->getstartpage()
        << "\" >Zur&uuml;ck zur Startseite</a></body></html>";
        libhtmlpp::print(err.parse(),&output);
        libhtmlpp::print(err.parse(),output);
        libhttppp::HttpResponse resp;
        resp.setVersion(HTTPVERSION(1.1));
        resp.setState(HTTP500);
+1 −1
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ void blogi::Template::printSite(std::string *output,libhtmlpp::HtmlElement *inde
        if(footernav)
            footernav->appendChild(footerancor.parse());

        libhtmlpp::print(index,&output);
        libhtmlpp::print(index,output);
    }catch(libhtmlpp::HTMLException &e){
        libhttppp::HTTPException excep;
        excep[libhttppp::HTTPException::Error] << e.what();