Changeset 635 for trunk


Ignore:
Timestamp:
May 24, 2008, 1:51:09 AM (13 years ago)
Author:
Peter Johansson
Message:

refs #296

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r623 r635  
    319319                        const SVNlog& log) const
    320320  {
    321     std::string outpath = stats_type+"/"+user+"/"+line_type+"/"+local_path();
     321    std::string lpath = local_path();
     322    if (lpath.empty())
     323      lpath = "index";
     324    std::string outpath = stats_type+"/"+user+"/"+line_type+"/"+lpath;
    322325    std::string imagefile = stats_type+"/"+"images/"+line_type+"/"+
    323       local_path_+".png";
     326      lpath+".png";
    324327    std::string html_name(outpath + ".html");
    325328    std::ofstream os(html_name.c_str());
    326     print_header(os, name(), level_+3, user, line_type, local_path()+".html",
     329    print_header(os, name(), level_+3, user, line_type, lpath+".html",
    327330                 stats_type);
    328331    path_anchor(os);
    329 
    330332    os << "<p class=\"plot\">\n<img src='";
    331333    for (size_t i=0; i<level_; ++i)
Note: See TracChangeset for help on using the changeset viewer.