Changeset 18860 for gsdl/trunk/runtime-src/src
- Timestamp:
- 2009-04-01T15:22:30+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/runtime-src/src/oaiservr/oaiconfig.cpp
r14284 r18860 267 267 } 268 268 } 269 else if (key == "baseDocRoot" && cfgline.size() >= 1) { 270 int line = 0; 271 272 while (line < cfgline.size()) { 273 if (cfgline[line] != "NULL" && 274 cfgline[line] != "") { 275 // do something 276 break; 277 } 278 else { 279 ++line; 280 } 281 } 282 283 // Only try to set the configuration if we have a legitimate value ... 284 if (line < cfgline.size()) { 285 // ensure we have a map to write to 286 if (this->collectMap[this->collection] == NULL) { 287 this->collectMap[this->collection] = new oaicollectconfig(this->collection); 288 } 289 this->collectMap[this->collection]->baseDocRoot = cfgline[line]; 290 } 291 } 269 292 } 270 293 … … 287 310 if (field == "baseURL") { 288 311 return this->collectMap[collection]->baseURL; 312 } 313 314 if (field == "baseDocRoot") { 315 return this->collectMap[collection]->baseDocRoot; 289 316 } 290 317
Note:
See TracChangeset
for help on using the changeset viewer.