Index: trunk/phase3/maintenance/dumpTextPass.php |
— | — | @@ -245,13 +245,15 @@ |
246 | 246 | } |
247 | 247 | } |
248 | 248 | |
249 | | - $filenameList = $this->egress->getFilename(); |
250 | | - if (! is_array($filenameList)) { |
251 | | - $filenameList = array( $filenameList ); |
| 249 | + if ($this->checkpointFiles) { |
| 250 | + $filenameList = $this->egress->getFilename(); |
| 251 | + if (! is_array($filenameList)) { |
| 252 | + $filenameList = array( $filenameList ); |
| 253 | + } |
| 254 | + if (count($filenameList) != count($this->checkpointFiles)) { |
| 255 | + wfDie("One checkpointfile must be specified for each output option, if maxtime is used.\n"); |
| 256 | + } |
252 | 257 | } |
253 | | - if (count($filenameList) != count($this->checkpointFiles)) { |
254 | | - wfDie("One checkpointfile must be specified for each output option, if maxtime is used.\n"); |
255 | | - } |
256 | 258 | } |
257 | 259 | |
258 | 260 | function readDump( $input ) { |