r10642 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10641‎ | r10642 | r10643 >
Date:01:49, 20 August 2005
Author:timstarling
Status:old
Tags:
Comment:
better current directory handling
Modified paths:
  • /branches/REL1_5/phase3/maintenance/dumpBackup.php (modified) (history)

Diff [purge]

Index: branches/REL1_5/phase3/maintenance/dumpBackup.php
@@ -22,6 +22,8 @@
2323 * @subpackage SpecialPage
2424 */
2525
 26+$originalDir = getcwd();
 27+
2628 $optionsWithArgs = array( 'server', 'pagelist' );
2729
2830 require_once( 'commandLine.inc' );
@@ -141,7 +143,7 @@
142144
143145 if ( isset( $options['pagelist'] ) ) {
144146 $olddir = getcwd();
145 - chdir( 'maintenance' );
 147+ chdir( $originalDir );
146148 $pages = file( $options['pagelist'] );
147149 chdir( $olddir );
148150 if ( $pages === false ) {

Status & tagging log