Commit 5da0734d authored by jan.koester's avatar jan.koester
Browse files

test

parent 217d460f
Loading
Loading
Loading
Loading
+6 −4
Changes for src/blogi.cpp: 6 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -1754,7 +1754,7 @@ RETRY_REQUEST:
                libhtmlpp::HtmlString output;
                std::string _lang = blogi::getLang(*PlgArgs->database[tid]);
                libhtmlpp::HtmlString err;
                err << "<!DOCTYPE html><html><body style=\"color:rgb(238, 238, 238); background:rgb(35, 38, 39);\">"
                err << "<div id=\"content\">"
                << "<span>" << blogi::tr(_lang,"Page or content not found") << "</span><br/>"
                << "<a style=\"text-decoration: none; color: rgb(58,212, 58);\" href=\""
                <<  PlgArgs->config->getstartpage()
@@ -1768,12 +1768,14 @@ RETRY_REQUEST:
                << " | <a style=\"text-decoration: none; color: rgb(58,212, 58);\" href=\""
                << PlgArgs->config->buildurl("settings")
                << "\" >" << blogi::tr(_lang,"Settings") << "</a>"
                << "</body></html>";
                libhtmlpp::print(err.parse(),output);
                << "</div>";
                if(index.getElementbyID("main"))
                    index.getElementbyID("main")->appendChild(err.parse());
                PlgArgs->theme->printSite(tid,output,&index,curreq.getRequestURL(),false);
                libhttppp::HttpResponse resp;
                resp.setState(HTTP404);
                resp.setContentType("text/html");
                resp.send(curreq,output.data(),output.length());
                resp.send(curreq,output.c_str(),output.length());
                return;
            }
        }catch(libhttppp::HTTPException &e){