Index: branches/REL1_5/phase3/maintenance/dumpBackup.php |
— | — | @@ -22,6 +22,8 @@ |
23 | 23 | * @subpackage SpecialPage |
24 | 24 | */ |
25 | 25 | |
| 26 | +$originalDir = getcwd(); |
| 27 | + |
26 | 28 | $optionsWithArgs = array( 'server', 'pagelist' ); |
27 | 29 | |
28 | 30 | require_once( 'commandLine.inc' ); |
— | — | @@ -141,7 +143,7 @@ |
142 | 144 | |
143 | 145 | if ( isset( $options['pagelist'] ) ) { |
144 | 146 | $olddir = getcwd(); |
145 | | - chdir( 'maintenance' ); |
| 147 | + chdir( $originalDir ); |
146 | 148 | $pages = file( $options['pagelist'] ); |
147 | 149 | chdir( $olddir ); |
148 | 150 | if ( $pages === false ) { |