Commit 38d8556a authored by jan.koester's avatar jan.koester
Browse files

i'am stupid

parent 7270e370
Loading
Loading
Loading
Loading
+4 −4
Changes for plugins/content/content.cpp: 4 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -205,8 +205,8 @@ namespace blogi {
            }
            canon.setAttribute("rel","canonical");
            canon.setAttribute("href",href.str());
            if(page->getElementbyTag("header"))
                    page->getElementbyTag("header")->appendChild(canon);
            if(page->getElementbyTag("head"))
                    page->getElementbyTag("head")->appendChild(canon);

            Args->theme->printSite(tid,out,page,curreq.getRequestURL(),Args->auth->isLoggedIn(tid,curreq,sessionid),meta.c_str());

@@ -267,8 +267,8 @@ namespace blogi {
            href << Args->config->getsiteurl() << "/content/read/" << cid;
            canon.setAttribute("rel","canonical");
            canon.setAttribute("href",href.str());
            if(page.getElementbyTag("header"))
                    page.getElementbyTag("header")->appendChild(canon);
            if(page.getElementbyTag("head"))
                    page.getElementbyTag("head")->appendChild(canon);

            Args->theme->printSite(tid,out,&page,curreq.getRequestURL(),Args->auth->isLoggedIn(tid,curreq,sessionid));

+2 −2
Changes for plugins/staticpage/static.cpp: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -394,8 +394,8 @@ bool blogi::StaticPage::Controller(const int tid,libhttppp::HttpRequest &req,lib
         href << Args->config->getsiteurl() << "/staticpage/" << res[0][0];
         canon.setAttribute("rel","canonical");
         canon.setAttribute("href",href.str());
         if(page->getElementbyTag("header"))
            page->getElementbyTag("header")->appendChild(canon);
         if(page->getElementbyTag("head"))
            page->getElementbyTag("head")->appendChild(canon);

        Args->theme->printSite(tid,out,page,req.getRequestURL(),Args->auth->isLoggedIn(tid,req,sessionid),res[0][2]);