Commit 2f469a8a authored by jan.koester's avatar jan.koester
Browse files

test

parent 1ec85590
Loading
Loading
Loading
Loading
+1 −8
Changes for src/theme.cpp: 1 added line, 8 removed lines.
Original line number Diff line number Diff line
@@ -463,15 +463,8 @@ void blogi::Theme::printSite(const int tid,libhtmlpp::HtmlString &output,libhtml
        if(head){
            libhtmlpp::HtmlElement *titleEl = head->getElementbyTag("title");
            if(titleEl){
                std::string siteTitle;
                try { getConfig(*_Config.TDatabase[tid], "SITE_TITLE", siteTitle); } catch(...) {}
                if(siteTitle.empty())
                    siteTitle = "Blogi";
                std::string fullTitle="";
                if(title && title[0] != '\0'){
                    fullTitle = siteTitle + " - " + std::string(title);
                }else{
                    fullTitle = siteTitle;
                    titleEl->appendChild(libhtmlpp::TextElement(" - " + std::string(title)));
                }
            }
        }