Unicornisaurous has uploaded a new change for review.
https://gerrit.wikimedia.org/r/262678
Change subject: Fix --pagelist for dumpBackup.php
......................................................................
Fix --pagelist for dumpBackup.php
Followup patch for I2473ee119c185d1b2b00ac4b1e70ee8a6cafe4a3,
which broke the --pagelist option for dumpBackup.
Somehow this slipped by in review.
Change-Id: Ifa1fd0f63f7b8db4d51a760e37ac0876430f2e88
---
M maintenance/dumpBackup.php
1 file changed, 3 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/78/262678/1
diff --git a/maintenance/dumpBackup.php b/maintenance/dumpBackup.php
index 6b5792a..3695bbf 100644
--- a/maintenance/dumpBackup.php
+++ b/maintenance/dumpBackup.php
@@ -95,12 +95,10 @@
$this->reporting = !$this->hasOption( 'quiet' );
if ( $this->hasOption( 'pagelist' ) ) {
- $olddir = getcwd();
- chdir( $originalDir );
- $pages = file( $this->getOption( 'quiet' ) );
- chdir( $olddir );
+ $filename = $this->getOption( 'pagelist' );
+ $pages = file( $filename );
if ( $pages === false ) {
- echo "Unable to open file
{$options['pagelist']}\n";
+ echo "Unable to open file {$filename}\n";
die( 1 );
}
$pages = array_map( 'trim', $pages );
--
To view, visit https://gerrit.wikimedia.org/r/262678
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifa1fd0f63f7b8db4d51a760e37ac0876430f2e88
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Unicornisaurous <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits