Changeset 7302


Ignore:
Timestamp:
2004-05-11T13:53:19+12:00 (20 years ago)
Author:
kjdon
Message:

removed a strange piece of code: 'return true; return false;' :-) site_cfg_read(gsdlhome, httpdomain, httpprefix) no longer tests whether these strings are empty (and then return true anyway) and now returns false only if it couldn't configure. the calling code now must check whether gsdlhome is empty before using it

Location:
trunk/gsdl/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/collectset.cpp

    r4372 r7302  
    5151  // cgiwrapper)
    5252  if (site_cfg_read (gsdlhome, httpdomain, httpprefix)) {
    53     if (directory_exists(gsdlhome)) {
     53    if (!gsdlhome.empty() && directory_exists(gsdlhome)) {
    5454      collectdir = filename_cat (gsdlhome, "collect");
    5555      if (read_dir (collectdir, collections)) {
  • trunk/gsdl/src/recpt/recptconfig.cpp

    r1860 r7302  
    120120  httpprefix.clear();
    121121
    122   if (gsdlconfigurator.configure("gsdlsite.cfg") &&
    123       !gsdlhome.empty() && !httpdomain.empty() && !httpprefix.empty()) {
     122  if (gsdlconfigurator.configure("gsdlsite.cfg")) {
    124123    return true;
    125124  }
    126 
    127   return true;
    128125
    129126  return false;
Note: See TracChangeset for help on using the changeset viewer.