Changeset 16310 for gsdl/trunk/src/recpt/cgiwrapper.cpp
- Timestamp:
- 2008-07-09T13:12:15+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/cgiwrapper.cpp
r15589 r16310 129 129 static void page_errorcollect (const text_t &gsdlhome, text_t &errorpage, bool debug) { 130 130 131 text_t collect dir= filename_cat (gsdlhome, "collect");131 text_t collecthome = filename_cat (gsdlhome, "collect"); 132 132 133 133 text_t errortext = "No valid collections were found: Check that your collect directory\n"; 134 errortext += "(" + collect dir+ ") is readable and contains at least one valid collection.\n";134 errortext += "(" + collecthome + ") is readable and contains at least one valid collection.\n"; 135 135 errortext += "Note that modelcol is NOT a valid collection.\n"; 136 136 errortext += "If the path to your collect directory is wrong edit the 'gsdlhome' field\n"; … … 301 301 bool colspec = false; 302 302 if (configinfo.collection.empty()) { 303 cout << "Receptionist is running in \"general\" (i.e. not \"collection \n"303 cout << "Receptionist is running in \"general\" (i.e. not \"collection " 304 304 << "specific\") mode.\n"; 305 305 } else { … … 311 311 } 312 312 313 cout << text_t2ascii << "gsdlhome=" << configinfo.gsdlhome << "\n"; 313 cout << text_t2ascii << " gsdlhome=" << configinfo.gsdlhome << "\n"; 314 if (!configinfo.collecthome.empty()) 315 cout << text_t2ascii << " collecthome=" << configinfo.collecthome << "\n"; 314 316 if (!configinfo.dbhome.empty()) 315 cout << text_t2ascii << " dbhome=" << configinfo.dbhome << "\n";316 cout << text_t2ascii << " httpprefix=" << configinfo.httpprefix << "\n";317 cout << text_t2ascii << " httpimg=" << configinfo.httpimg << "\n";318 cout << text_t2ascii << " gwcgi=" << configinfo.gwcgi << "\n"317 cout << text_t2ascii << " dbhome=" << configinfo.dbhome << "\n"; 318 cout << text_t2ascii << " httpprefix=" << configinfo.httpprefix << "\n"; 319 cout << text_t2ascii << " httpimg=" << configinfo.httpimg << "\n"; 320 cout << text_t2ascii << " gwcgi=" << configinfo.gwcgi << "\n\n" 319 321 << " Note that unless gwcgi has been set from a configuration\n" 320 322 << " file it is dependent on environment variables set by your\n" … … 483 485 // read in the configuration files. 484 486 text_t gsdlhome; 487 text_t collecthome; 485 488 configurator gsdlconfigurator(&recpt); 486 if (!site_cfg_read (gsdlconfigurator, gsdlhome, maxrequests)) {489 if (!site_cfg_read (gsdlconfigurator, gsdlhome, collecthome, maxrequests)) { 487 490 // couldn't find the site configuration file 488 491 page_errorsitecfg (errorpage, debug, 0); … … 493 496 // gsdlhome not a valid directory 494 497 page_errorsitecfg (errorpage, debug, 1); 495 } else if (!main_cfg_read (recpt, gsdlhome, collect ion)) {498 } else if (!main_cfg_read (recpt, gsdlhome, collecthome, collection)) { 496 499 // couldn't find the main configuration file 497 500 page_errormaincfg (gsdlhome, collection, debug, errorpage);
Note:
See TracChangeset
for help on using the changeset viewer.