Changeset 16310 for gsdl/trunk/src/recpt/wizardaction.cpp
- Timestamp:
- 2008-07-09T13:12:15+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/src/recpt/wizardaction.cpp
r15597 r16310 201 201 // collect.cfg file is writable 202 202 bool wizardaction::collection_protected (const text_t &collection) { 203 text_t cfgfile = filename_cat( gsdlhome, "collect", collection, "etc", "collect.cfg");203 text_t cfgfile = filename_cat(collecthome, collection, "etc", "collect.cfg"); 204 204 if (file_writable(cfgfile)) return false; 205 205 return true; … … 310 310 311 311 // check to see if shortname is unique 312 text_t fulldirname = filename_cat ( gsdlhome, "collect", shortname);312 text_t fulldirname = filename_cat (collecthome, shortname); 313 313 if (directory_exists (fulldirname)) { 314 314 int version = 0; … … 319 319 newname.push_back ('v'); 320 320 newname.appendint (version); 321 fulldirname = filename_cat ( gsdlhome, "collect", newname);321 fulldirname = filename_cat (collecthome, newname); 322 322 } while (directory_exists (fulldirname)); 323 323 … … 468 468 469 469 text_t cfgfile_content; 470 text_t cfgfile_name = filename_cat ( gsdlhome, "collect", collection, "etc", "collect.cfg");470 text_t cfgfile_name = filename_cat (collecthome, collection, "etc", "collect.cfg"); 471 471 text_t pluginstr, pluginname; 472 472 … … 654 654 if ((args[macro_prefix+"econf"] == 1) || (args[macro_prefix+"esrce"] == 1)) { 655 655 // we're adding to a collection in place 656 return filename_cat(gsdlhome, "collect");656 return collecthome; 657 657 } 658 658 else { … … 673 673 if ((*rprotolist_here).p->get_protocol_name (err) == "nullproto") { 674 674 // create collection server and add it to nullproto 675 (*rprotolist_here).p->add_collection (collection, recpt, gsdlhome, gsdlhome);675 (*rprotolist_here).p->add_collection (collection, recpt, gsdlhome, collecthome, dbhome); 676 676 // make sure gsdlhome is configured 677 677 text_tarray tmp;
Note:
See TracChangeset
for help on using the changeset viewer.